Skip to:
Content

BuddyPress.org

Ticket #3769: 3769.01.patch

File 3769.01.patch, 1.2 KB (added by r-a-y, 14 years ago)
  • bp-core/bp-core-component.php

    class BP_Component { 
    218218                // Setup navigation
    219219                add_action( 'bp_setup_nav',              array ( $this, 'setup_nav'              ), 10 );
    220220
    221                 // Setup WP Admin Bar menus
    222                 add_action( 'bp_setup_admin_bar',        array ( $this, 'setup_admin_bar'        ), 10 );
    223 
    224221                // Setup component title
    225222                add_action( 'bp_setup_title',            array ( $this, 'setup_title'            ), 10 );
    226223
  • bp-friends/bp-friends-loader.php

    class BP_Friends_Component extends BP_Component { 
    8484        }
    8585
    8686        /**
     87         * Setup actions.
     88         *
     89         * @since 1.6
     90         * @global obj $bp
     91         */
     92        function setup_actions() {
     93                parent::setup_actions();
     94                add_action( 'bp_setup_admin_bar', array ( $this, 'setup_admin_bar' ), 30 );
     95        }
     96
     97        /**
    8798         * Setup BuddyBar navigation
    8899         *
    89100         * @global obj $bp