Skip to:
Content

bbPress.org

Changeset 5109


Ignore:
Timestamp:
09/27/2013 06:50:55 PM (8 years ago)
Author:
johnjamesjacoby
Message:

In bbp_template_include_theme_compat(), bail out early when a root template has already been previously located. Fixes issues with recursive calls to the 'the_content' filter. Fixes #2429. (2.4.1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/includes/core/theme-compat.php

    r5080 r5109  
    434434
    435435    /**
     436     * Bail if a root template was already found. This prevents unintended
     437     * recursive filtering of 'the_content'.
     438     *
     439     * @link http://bbpress.trac.wordpress.org/ticket/2429
     440     */
     441    if ( bbp_is_template_included() ) {
     442        return $template;
     443    }
     444
     445    /**
    436446     * If BuddyPress is activated at a network level, the action order is
    437447     * reversed, which causes the template integration to fail. If we're looking
Note: See TracChangeset for help on using the changeset viewer.