Skip to:
Content

BuddyPress.org

Changeset 6658


Ignore:
Timestamp:
12/25/2012 09:02:57 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • In bp_template_include_theme_compat(), move root template check beyond reset post ation, so post gets reset even if root template is found.
  • See #4656.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-theme-compatibility.php

    r6605 r6658  
    445445function bp_template_include_theme_compat( $template = '' ) {
    446446
    447     // Bail if the template already matches a BuddyPress template
    448     if ( !empty( buddypress()->theme_compat->found_template ) )
    449         return $template;
    450 
    451447    /**
    452448     * Use this action to execute code that will communicate to BuddyPress's
     
    455451     */
    456452    do_action( 'bp_template_include_reset_dummy_post_data' );
     453
     454    // Bail if the template already matches a BuddyPress template
     455    if ( !empty( buddypress()->theme_compat->found_template ) )
     456        return $template;
    457457
    458458    /**
Note: See TracChangeset for help on using the changeset viewer.