[buddypress-trac] [BuddyPress Trac] #4954: Migrate BP's custom URI parser to use WP's Rewrite API

buddypress-trac noreply at wordpress.org
Sun Jul 16 15:43:32 UTC 2023


#4954: Migrate BP's custom URI parser to use WP's Rewrite API
--------------------------------------+---------------------
 Reporter:  boonebgorges              |       Owner:  imath
     Type:  enhancement               |      Status:  closed
 Priority:  high                      |   Milestone:  12.0.0
Component:  Route Parser              |     Version:
 Severity:  major                     |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+---------------------

Comment (by imath):

 In [changeset:"13519" 13519]:
 {{{
 #!CommitTicketReference repository="" revision="13519"
 Make sure `bp_core_new_nav_default()` is ready for the BP Rewrites API

 - In case plain permalinks are used, use the
 `$GLOBALS['wp']->query_string` to set the `buddypress()->unfiltered_uri`
 global.
 - Do not edit sub nav links when calling `bp_core_new_nav_default()` if
 the URL parser is set to `'rewrites'`.
 - Avoid a PHP notice if the new sub nav object misses the `slug` and/or
 the `link` properties.

 Props corzel

 See #4954
 Fixes #8936
 Closes https://github.com/buddypress/buddypress/pull/130
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4954#comment:100>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list