Skip to:
Content

bbPress.org

Changeset 5110


Ignore:
Timestamp:
09/27/2013 06:51:56 PM (11 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.5)

File:
1 edited

Legend:

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

    r5080 r5110  
    432432 */
    433433function bbp_template_include_theme_compat( $template = '' ) {
     434   
     435    /**
     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    }
    434444
    435445    /**
Note: See TracChangeset for help on using the changeset viewer.