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

buddypress-trac noreply at wordpress.org
Wed Apr 19 03:07:01 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 prbot):

 ''This ticket was mentioned in
 [https://github.com/buddypress/buddypress/pull/87 PR #87] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/imath/ @imath].''
 - Start implementing the `parse_query()` methods for the Activity/Blogs
 and Members components.
 - Remove the notice used to force pretty permalinks
 - Use plain links to test `parse_query()` methods are rightly setting
 BuddyPress URI globals
 - Introduce some helper functions used during the BP Rewrites API parsing
 process :
   -  `bp_is_directory_homepage()` is checking if a BP Directory is used as
 the site's homepage.
   - `bp_rewrites_get_custom_slug_rewrite_id()` finds a Rewrite ID out of a
 custom slug.
   - `bp_rewrites_get_member_data()` returns the field to use to get the
 user by.
   - `bp_reset_query()` makes it possible to parse again a request in
 specific cases (eg: root profiles)

 Trac ticket: https://buddypress.trac.wordpress.org/ticket/4954

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


More information about the buddypress-trac mailing list