[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 22 00:00:49 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/77 PR #77] on
[https://github.com/buddypress/buddypress/ buddypress/buddypress] by
[https://profiles.wordpress.org/imath/ @imath].''
`BP_Core_Nav` is the class we use to set up BuddyPress single item
navigations. It now only needs slugs to build URLs.
- Remove all components `parent_url` attributes when setting sub nav
items.
- When a plugins will specify a `link` for the main nav item or a
`parent_url` for the sub nav item, it will use this link to preserve
backward compatibility.
- The PR also migrates the Community search feature so that it uses BP
Rewrites.
- Update some PHPUnit tests.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/4954
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4954#comment:67>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list