Skip to:
Content

bbPress.org

Opened 10 years ago

Closed 9 years ago

Last modified 6 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:
Cc:

Description

Context:
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.

Issue:
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
9 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
6 years ago

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

Note: See TracTickets for help on using tickets.