[buddypress-trac] [BuddyPress Trac] #4954: Migrate BP's custom URI parser to use WP's Rewrite API
buddypress-trac
noreply at wordpress.org
Wed Feb 12 23:35:40 UTC 2014
#4954: Migrate BP's custom URI parser to use WP's Rewrite API
---------------------------+------------------------------
Reporter: boonebgorges | Owner: johnjamesjacoby
Type: task | Status: new
Priority: high | Milestone: 2.0
Component: Rewrite Rules | Version:
Severity: major | Resolution:
Keywords: |
---------------------------+------------------------------
Comment (by r-a-y):
> I think root profiles won't be that bad. Existing code for bbPress's
root forums handles this scenario, and I'm hoping that using rewrite rules
will allow any component to exist in the root
I'll have to take a look at how bbPress does root forums!
----
01b.ajax.patch is an alternative way to address the AJAX issue brought up
in comment:13.
''(Requires the earlier 01.patch)''
This technique loads up the WordPress query with the `wp()` function
during AJAX requests, which will allow `'parse_query'` to run... well,
almost! `bp_parse_query()` bails when in the admin area. There's
probably a good reason why `bp_parse_query()` does this, so I left that
function untouched and added a stub method to run our `'bp_parse_query'`
hook.
Hat-tip to Boone for pointing me in this direction.
The only other issue is the hardcoded `PHP_SELF`. I'm not sure if that
value changes in different environments.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4954#comment:16>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list