Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

#5112 closed defect (bug) (fixed)

Duplicate referer field when using BP_Group_Extension

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 1.9 Priority: normal
Severity: normal Version:
Component: Groups 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 12 years ago.

Download all attachments as: .zip

Change History (2)

#1 @johnjamesjacoby
12 years ago

  • Resolution set to fixed
  • Status changed from new to 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.