Opened 16 years ago
Closed 16 years ago
#344 closed defect (bug) (fixed)
Brute force fix for bp's virtual url 404s
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: |
Description
I explained how I got here in this thread and that this probably isn't the best way to do this but...
http://buddypress.org/forums/topic.php?id=761
The essence of this thread is that wp_query obj isn't happy with bp's virtual urls such as /members/me
By telling wp_query that everything is fine with:
`if ( !$bp_no_status_set ) {
status_header( 200 );
global $wp_query; $wp_query->is_404 = false;
}`
In the fn bp_core_do_catch_uri() in bp-core-catchuri.php the 404s go away.
See forum thread for my discussion with myself about this. :)
In reality, BuddyPress should be making use of $wp_query for it's URL handling, but the current solution works well for now.
This fix will work for now, but in a future version of the core plugin, $wp_query should be used, I just need to look further into how it works. It has to be easy to understand for plugin developers though.