[buddypress-trac] [BuddyPress] #5112: Duplicate referer field when using BP_Group_Extension
buddypress-trac
noreply at wordpress.org
Wed Jul 24 11:24:18 UTC 2013
#5112: Duplicate referer field when using BP_Group_Extension
-----------------------------+-----------------------------
Reporter: johnjamesjacoby | Owner: johnjamesjacoby
Type: defect (bug) | Status: new
Priority: normal | Milestone: 1.9
Component: Groups | Version:
Severity: normal | Keywords: has-patch
-----------------------------+-----------------------------
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.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5112>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list