Skip to:
Content

BuddyPress.org

Changeset 571


Ignore:
Timestamp:
11/22/2008 07:57:50 PM (18 years ago)
Author:
apeatling
Message:

Added a remove_action() to stop WordPress and BuddyPress template redirections from conflicting.

For example, when a BuddyPress group slug was the same as a WordPress page slug, the group would always redirect to the page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r565 r571  
    156156        $bp_path = $pages;
    157157
    158         add_action( "template_redirect", "bp_core_do_catch_uri", 10, 1 );
     158        remove_action( 'template_redirect', 'redirect_canonical' );
     159        add_action( 'template_redirect', 'bp_core_do_catch_uri' );
    159160}
    160161
    … …  
    172173
    173174        $pages = $bp_path;
    174 
     175       
    175176        /* Don't hijack any URLs on blog pages */
    176177        if ( !$bp_skip_blog_check ) {
Note: See TracChangeset for help on using the changeset viewer.