[buddypress-trac] [BuddyPress Trac] #4954: Migrate BP's custom URI parser to use WP's Rewrite API
buddypress-trac
noreply at wordpress.org
Sun Feb 12 09:09:20 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 |
--------------------------------------+-----------------------
Changes (by prbot):
* keywords: needs-patch => has-patch has-unit-tests
Comment:
''This ticket was mentioned in
[https://github.com/buddypress/buddypress/pull/65 PR #65] on
[https://github.com/buddypress/buddypress/ buddypress/buddypress] by
[https://profiles.wordpress.org/imath/ @imath].''
Create the `bp-core-rewrites.php` file to put BP Rewrites function inside
it & edit the BP_Component class to generate rewrites when a component has
a directory.
Compared to the BP Rewrites plugin, I've put some new code to make it
easier for plugin developers to create BP Rewrites for their custom
component. Most of the job can be done by setting the `rewrite_ids` values
from this component eg: `$component->rewrite_ids = array( 'directory' =>
'custom_rewrite_id' )`.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/4954
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4954#comment:46>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list