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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 7302: