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-core/bp-core-filters.php

    r6354 r6404  
    229229
    230230        // Don't touch the email if we don't have a custom registration template
    231         if ( '' == locate_template( array( 'registration/register.php' ), false ) && '' == locate_template( array( 'register.php' ), false ) )
     231        if ( ! bp_has_custom_signup_page() )
    232232                return $welcome_email;
    233233
    … …  
    254254
    255255        // Don't touch the email if we don't have a custom registration template
    256         if ( '' == locate_template( array( 'registration/register.php' ), false ) && '' == locate_template( array( 'register.php' ), false ) )
     256        if ( ! bp_has_custom_signup_page() )
    257257                return $welcome_email;
    258258
Note: See TracChangeset for help on using the changeset viewer.