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

buddypress-trac noreply at wordpress.org
Thu Apr 20 02:30:18 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:"13455" 13455]:
 {{{
 #!CommitTicketReference repository="" revision="13455"
 Start implementing `parse_query()` methods for directory components

 First concerned commponents are: Activity, Blogs & Members.

 - 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)

 Props r-a-y, johnjamesjacoby, boonebgorges

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

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


More information about the buddypress-trac mailing list