Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/09/2011 10:36:03 AM (13 years ago)
Author:
djpaul
Message:

Set is_singular to fix WP's custom menu selected logic. Fixes #3621

File:
1 edited

Legend:

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

    r5156 r5227  
    331331        // Template was located, lets set this as a valid page and not a 404.
    332332        status_header( 200 );
    333         $wp_query->is_page = true;
    334         $wp_query->is_404 = false;
     333        $wp_query->is_page = $wp_query->is_singular = true;
     334        $wp_query->is_404  = false;
    335335
    336336        load_template( apply_filters( 'bp_load_template', $located_template ) );
Note: See TracChangeset for help on using the changeset viewer.