Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/13/2012 06:20:07 PM (13 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-catchuri.php

    r6402 r6404  
    459459
    460460    $defaults = array(
    461         'mode'     => bp_enable_theme_compat() ? 2 : 1, // 1 = $root, 2 = wp-login.php
     461        'mode'     => bp_is_theme_bp_default() ? 1 : 2, // 1 = $root, 2 = wp-login.php
    462462        'redirect' => $redirect_url,                    // the URL you get redirected to when a user successfully logs in
    463463        'root'     => bp_get_root_domain(),         // the landing page you get redirected to when a user doesn't have access
Note: See TracChangeset for help on using the changeset viewer.