Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

#5112 closed defect (bug) (fixed)

Duplicate referer field when using BP_Group_Extension

Reported by: johnjamesjacoby Owned by: johnjamesjacoby
Priority: normal Milestone: 1.9
Component: Groups Version:
Severity: normal Keywords: has-patch
Cc:

Description

When using the BP_Group_Extension, the maybe_create_screen() method makes two calls to wp_nonce_field():

  • One via the nonce_field() method
  • One directly

Both calls are currently also calling wp_referer_field(), resulting in duplicate fields. The third parameter of wp_nonce_field() is whether or not to automatically create this field, so the solution is to pass false into one of them (most likely the direct call.)

Patch attached.

Attachments (1)

5112.patch​ (445 bytes ) - added by johnjamesjacoby 13 years ago.

Download all attachments as: .zip

Change History (2)

#1 @johnjamesjacoby
13 years ago

  • Resolution → fixed
  • Status new → closed

In 7302:

Fix duplicate referer fields in BP_Group_Extension::maybe_create_screen() method. Fixes #5112.

Note: See TracTickets for help on using tickets.