[buddypress-trac] [BuddyPress Trac] #9060: bp_rewrites_get_url filter is not supplied original function arguments

buddypress-trac noreply at wordpress.org
Sat Jan 6 13:07:34 UTC 2024


#9060: bp_rewrites_get_url filter is not supplied original function arguments
--------------------------+-----------------------------
 Reporter:  sjregan       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  12.0.0
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9060>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list