Opened 13 months ago
Closed 13 months ago
#9060 closed defect (bug) (fixed)
bp_rewrites_get_url filter is not supplied original function arguments
Reported by: | sjregan | Owned by: | imath |
---|---|---|---|
Milestone: | 14.0.0 | Priority: | normal |
Severity: | normal | Version: | 12.0.0 |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
For the bp_rewrites_get_url()
function, an optional list of arguments can be provided to the function for determining what URL will be built.
At the end of the function, the resulting URL is filtering using the bp_rewrites_get_url
filter. The filter is supplied with a modified version of the function arguments rather than the original function arguments.
This means when filtering the URL critical fields such as 'component_id'
are not passed to the filter.
Seen in v12 through v14-alpha.
Change History (4)
Note: See
TracTickets for help on using
tickets.
…r (fixes #9060)
The bp_rewrites_get_url() function passes function arguments after they have been modified by the function. This fix ensures the original function arguments are passed to the filter so critical fields remain intact.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9060#ticket