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

buddypress-trac noreply at wordpress.org
Wed Mar 15 08:16:52 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:"13436" 13436]:
 #!CommitTicketReference repository="" revision="13436"
 Make more BuddyPress generated links ready for BP Rewrites

 - Improve the Members component adding permastructs and custom rewrite
 rules for registration and activation pages.
 - Improve the Blogs component adding custom rewrite rule to handle the
 Blogs create page.
 - Make a huge progress about replacing all occurrences of
 `bp_get_root_domain()` (45 replacements were performed).
 - Deprecate `bp_groups_directory_permalink()`,
 `bp_get_groups_directory_permalink()`, `bp_blogs_directory_permalink()` &
 `bp_get_blogs_directory_permalink()` and replace them with these new
 functions: `bp_groups_directory_url()`, `bp_get_groups_directory_url()`,
 `bp_blogs_directory_url()` & `bp_get_blogs_directory_url()`.
 - Although `bp_loggedin_user_domain()` & `bp_displayed_user_domain()`
 should also be deprecated, we're leaving them as aliases of the right
 functions to use. Plugin authors shouldn't use them to build other links
 than member's profile home url.

 **NB**: these deprecations are required because these functions were used
 to build BuddyPress URLs concatenating URL chunks. Once the BP Classic
 plugin will  be built we will adapt the code to remove these deprecation

 Props r-a-y, johnjamesjacoby, boonebgorges

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

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

More information about the buddypress-trac mailing list