Skip to:
Content

BuddyPress.org

Ticket #2074: bp-core.diff

File bp-core.diff, 1.0 KB (added by andrew_s1, 16 years ago)
  • bp-core.php

     
    6464if ( !defined( 'BP_SEARCH_SLUG' ) )
    6565        define( 'BP_SEARCH_SLUG', 'search' );
    6666
     67/* Define the slug for the login page, if the user omits the .php */
     68if ( !defined( 'BP_LOGIN1_SLUG' ) )
     69        define( 'BP_LOGIN1_SLUG', 'wp-login' );
     70
     71/* Define the slug for the login page */
     72if ( !defined( 'BP_LOGIN_SLUG' ) )
     73        define( 'BP_LOGIN_SLUG', BP_LOGIN1_SLUG.'.php' );
     74
    6775/* Register BuddyPress themes contained within the bp-theme folder */
    6876if ( function_exists( 'register_theme_directory') )
    6977        register_theme_directory( WP_PLUGIN_DIR . '/buddypress/bp-themes' );
     
    198206        bp_core_add_root_component( BP_REGISTER_SLUG );
    199207        bp_core_add_root_component( BP_ACTIVATION_SLUG );
    200208        bp_core_add_root_component( BP_SEARCH_SLUG );
     209        bp_core_add_root_component( BP_LOGIN_SLUG );
     210        bp_core_add_root_component( BP_LOGIN1_SLUG );
    201211}
    202212add_action( 'plugins_loaded', 'bp_core_setup_root_uris', 2 );
    203213