[buddypress-trac] [BuddyPress Trac] #8320: 404 error for the next page after loading any BuddyPress page
buddypress-trac
noreply at wordpress.org
Sun Apr 21 15:24:23 UTC 2024
#8320: 404 error for the next page after loading any BuddyPress page
--------------------------+------------------------------
Reporter: dmcsupport | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Core | Version: 6.0.0
Severity: critical | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by mylinksdin):
In our template_redirect hook, we added the following on top:
{{{
global $wp_query;
// Start: Compatibiltiy fix for BuddyPress members and groups
if ( function_exists( 'bp_is_user' ) && function_exists( 'bp_is_group' ) )
{
if ( bp_is_user() ) {
$bp_content_slug = $GLOBALS['bp']->pages->members->slug;
} elseif ( bp_is_group() ) {
$bp_content_slug = $GLOBALS['bp']->pages->groups->slug;
}
if ( !empty( $bp_content_slug ) ) {
$wp_query = new WP_Query( array( 'pagename' =>
$bp_content_slug ) );
}
}
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8320#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list