Skip to:

Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#2864 closed defect (bug) (fixed)

Ajax validation issue for user auto-complete

Reported by: robkk's profile Robkk Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.8
Component: General - Administration Keywords:


On the “Edit Topic” screen, there’s an “Author Information” box including an ID field. When you begin to type text into this box, the admin-ajax action “bbp_suggest_user” should auto-suggest potentially matching users.

The user autosuggest is not returning any users, just “-1”. Having dug into the code, the step that’s failing is wp_verify_nonce() in check_ajax_referrer(), which is invoked on line 745 of bbPress file includes/admin/admin.php. The nonce is making it into wp_verify_nonce, but is not matching any expected/acceptable value – so wp_verify_nonce falls out the bottom with a failure.

If I remove the check_ajax_referrer step, the Edit Topic user auto-suggestion works perfectly so it’s definitely the nonce validation step that’s the problem.

Just straight up copied from this topic

Change History (2)

#1 @thebrandonallen
8 years ago

  • Keywords needs-patch removed
  • Milestone changed from Awaiting Review to 2.6
  • Resolution set to fixed
  • Status changed from new to closed

This is a copy-pasta mistake when the nonces were backported to the 2.5 branch. Marking as fixed for in 2.6.

#2 @johnjamesjacoby
5 years ago

Assigning all closed & unassigned tickets in the 2.6 milestone to myself.

Note: See TracTickets for help on using tickets.