Skip to:
Content

BuddyPress.org

Ticket #9139: 9139.01.patch

File 9139.01.patch, 548 bytes (added by r-a-y, 2 months ago)
  • src/bp-core/bp-core-template-loader.php

     
    550550 * @param WP_Query $posts_query WP_Query object.
    551551 */
    552552function bp_parse_query( $posts_query ) {
     553        // Only run on the root site or if multiblog mode is on.
     554        if ( ! bp_is_root_blog() && ! bp_is_multiblog_mode() ) {
     555                return;
     556        }
    553557
    554558        // Bail if $posts_query is not the main loop.
    555559        if ( ! $posts_query->is_main_query() ) {