Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/13/2012 06:20:07 PM (14 years ago)
Author:
r-a-y
Message:

Theme Compat:

  • Introduce bp_is_theme_bp_default() function - this checks to see if the current theme uses bp-default. Replace all instances of bp_enable_theme_compat() with bp_is_theme_bp_default()
  • In bp-core-filters.php, switch out hardcoded locate_template() registration template checks for bp_has_custom_signup_page().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-template.php

    r6399 r6404  
    968968
    969969function bp_has_custom_signup_page() {
    970         // if theme compat is enabled, we're already using our bundled templates
    971         if ( bp_enable_theme_compat() )
     970        // if theme is not bp-default, theme compat is on
     971        // theme compat already bundles its own templates
     972        if ( ! bp_is_theme_bp_default() )
    972973                return true;
    973974
Note: See TracChangeset for help on using the changeset viewer.