Skip to:
Content

BuddyPress.org

Ticket #3418: update_core_actions.patch

File update_core_actions.patch, 1.4 KB (added by sbrajesh, 14 years ago)
  • bp-core-component.php

     
    136136                $bp->loaded_components[$this->slug] = $this->id;
    137137
    138138                // Call action
    139                 do_action( 'bp_' . $this->id . 'setup_globals' );
     139                do_action( 'bp_' . $this->id . '_setup_globals' );
    140140        }
    141141
    142142        /**
     
    169169                }
    170170
    171171                // Call action
    172                 do_action( 'bp_' . $this->id . 'includes' );
     172                do_action( 'bp_' . $this->id . '_includes' );
    173173        }
    174174
    175175        /**
     
    213213                add_action( 'bp_generate_rewrite_rules',   array ( $this, 'generate_rewrite_rules'   ), 10 );
    214214
    215215                // Additional actions can be attached here
    216                 do_action( 'bp_' . $this->id . 'setup_actions' );
     216                do_action( 'bp_' . $this->id . '_setup_actions' );
    217217        }
    218218
    219219        /**
     
    237237                }
    238238
    239239                // Call action
    240                 do_action( 'bp_' . $this->id . 'setup_nav' );
     240                do_action( 'bp_' . $this->id . '_setup_nav' );
    241241        }
    242242
    243243        /**
     
    271271                }
    272272
    273273                // Call action
    274                 do_action( 'bp_' . $this->id . 'setup_admin_bar' );
     274                do_action( 'bp_' . $this->id . '_setup_admin_bar' );
    275275        }
    276276
    277277        /**
     
    282282         * @uses do_action() Calls 'bp_{@link bp_Component::name}setup_title'
    283283         */
    284284        function setup_title( ) {
    285                 do_action(  'bp_' . $this->id . 'setup_title' );
     285                do_action(  'bp_' . $this->id . '_setup_title' );
    286286        }
    287287
    288288        /**