Skip to:
Content

BuddyPress.org

Ticket #3528: 3528.001.diff

File 3528.001.diff, 1.5 KB (added by cnorris23, 15 years ago)
  • bp-core/bp-core-component.php

     
    192192         */
    193193        function setup_actions() {
    194194
    195                 // Register post types
     195                // Setup globals
    196196                add_action( 'bp_setup_globals',          array ( $this, 'setup_globals'          ), 10 );
    197197
    198198                // Include required files. Called early to ensure that BP core
     
    202202                // extending this base class.
    203203                add_action( 'bp_include',                array ( $this, 'includes'               ), 8 );
    204204
    205                 // Register post types
     205                // Setup navigation
    206206                add_action( 'bp_setup_nav',              array ( $this, 'setup_nav'              ), 10 );
    207207
    208                 // Register post types
     208                // Setup WP Admin Bar menus
    209209                add_action( 'bp_setup_admin_bar',        array ( $this, 'setup_admin_bar'        ), 10 );
    210210
    211                 // Register post types
     211                // Setup component title
    212212                add_action( 'bp_setup_title',            array ( $this, 'setup_title'            ), 10 );
    213213
    214214                // Register post types
  • bp-members/bp-members-loader.php

     
    6060
    6161                // Define a slug, if necessary
    6262                if ( !defined( 'BP_MEMBERS_SLUG' ) )
    63                         define( 'BP_MEMBERS_SLUG', 'members' );
     63                        define( 'BP_MEMBERS_SLUG', $this->id );
    6464
    6565                $globals = array(
    6666                        'path'          => BP_PLUGIN_DIR,