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

buddypress-trac noreply at wordpress.org
Wed May 3 06:18:31 UTC 2023


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

Comment (by imath):

 In [changeset:"13468" 13468]:
 {{{
 #!CommitTicketReference repository="" revision="13468"
 Stop using BP Legacy URL parser in favor of the new BP Rewrites API

 - Deprecate `bp_core_set_uri_globals()`. This function is moved inside the
 BP Classic compatibility plugin.
 - Introduce the new `bp_register_nav` action to hook to when globalizing
 Members single item navigations from the `BP_Component` class.
 - Improve `bp_get_component_navigations()` so that Avatar/Cover images
 navigation items are moved inside the Profile sub nav if the Extended
 profile component is active.
 - Register Avatar/Cover images Ajax actions so that these actions trigger
 our new URL Parser inside Ajax context.
 - Improve the `BP_Core_Nav::add_nav()` method so that any BP action
 variable slugs can be customized.
 - Improve Members & Groups component canonical redirections.
 - Handle slugs customization persistency using directory pages post metas.
 - Introduce a new repair tool to reset all slugs to BuddyPress default
 one.
 - Adapt some PHPUnit tests to better handle our new URL parser.

 Props Props r-a-y, johnjamesjacoby, boonebgorges

 Closes https://github.com/buddypress/buddypress/pull/94
 See #4954
 }}}

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


More information about the buddypress-trac mailing list