Skip to:
Content

BuddyPress.org

Changeset 7277


Ignore:
Timestamp:
07/17/2013 08:19:25 AM (7 years ago)
Author:
djpaul
Message:

Make declarations of each components' methods compatible with those in the BP_Component class.

Fixes standards warnings on PHP 5.4

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-loader.php

    r7193 r7277  
    3838     * @since BuddyPress (1.5)
    3939     */
    40     function includes() {
     40    public function includes( $includes = array() ) {
    4141        // Files to include
    4242        $includes = array(
     
    7272     * @global object $bp BuddyPress global settings
    7373     */
    74     function setup_globals() {
     74    public function setup_globals( $args = array() ) {
    7575        global $bp;
    7676
     
    110110     * @uses bp_get_groups_slug()
    111111     */
    112     function setup_nav() {
     112    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    113113
    114114        $sub_nav = array();
     
    217217     * @uses bp_get_groups_slug()
    218218     */
    219     function setup_admin_bar() {
     219    public function setup_admin_bar( $wp_admin_nav = array() ) {
    220220        global $bp;
    221221
  • trunk/bp-blogs/bp-blogs-loader.php

    r7062 r7277  
    3737     * @global BuddyPress $bp The one true BuddyPress instance
    3838     */
    39     function setup_globals() {
     39    public function setup_globals( $args = array() ) {
    4040        global $bp;
    4141
     
    6868     * Include files
    6969     */
    70     function includes() {
     70    public function includes( $includes = array() ) {
    7171        // Files to include
    7272        $includes = array(
     
    9494     * @global BuddyPress $bp The one true BuddyPress instance
    9595     */
    96     function setup_nav() {
     96    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    9797        global $bp;
    9898
     
    146146     * @global BuddyPress $bp The one true BuddyPress instance
    147147     */
    148     function setup_admin_bar() {
     148    public function setup_admin_bar( $wp_admin_nav = array() ) {
    149149        global $bp;
    150150
  • trunk/bp-core/bp-core-loader.php

    r6911 r7277  
    111111    }
    112112
    113     function includes() {
     113    public function includes( $includes = array() ) {
    114114
    115115        if ( !is_admin() )
     
    131131     * @global BuddyPress $bp
    132132     */
    133     function setup_globals() {
     133    public function setup_globals( $args = array() ) {
    134134        global $bp;
    135135
     
    195195     * @global BuddyPress $bp
    196196     */
    197     function setup_nav() {
     197    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    198198        global $bp;
    199199
  • trunk/bp-forums/bp-forums-loader.php

    r7213 r7277  
    3636     * @since BuddyPress (1.5)
    3737     */
    38     function setup_globals() {
     38    public function setup_globals( $args = array() ) {
    3939        $bp = buddypress();
    4040
     
    6767     * Include files
    6868     */
    69     function includes() {
     69    public function includes( $includes = array() ) {
    7070
    7171        // Files to include
     
    9595     * Setup BuddyBar navigation
    9696     */
    97     function setup_nav() {
     97    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    9898
    9999        // Stop if forums haven't been set up yet
     
    155155     * Set up the Toolbar
    156156     */
    157     function setup_admin_bar() {
     157    public function setup_admin_bar( $wp_admin_nav = array() ) {
    158158
    159159        // Prevent debug notices
  • trunk/bp-friends/bp-friends-loader.php

    r6622 r7277  
    3030     * Include files
    3131     */
    32     function includes() {
     32    public function includes( $includes = array() ) {
    3333        // Files to include
    3434        $includes = array(
     
    5555     * @global BuddyPress $bp The one true BuddyPress instance
    5656     */
    57     function setup_globals() {
     57    public function setup_globals( $args = array() ) {
    5858        global $bp;
    5959
     
    8888     * @global BuddyPress $bp The one true BuddyPress instance
    8989     */
    90     function setup_nav() {
     90    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    9191        global $bp;
    9292
     
    143143     * @global BuddyPress $bp The one true BuddyPress instance
    144144     */
    145     function setup_admin_bar() {
     145    public function setup_admin_bar( $wp_admin_nav = array() ) {
    146146        global $bp;
    147147
  • trunk/bp-groups/bp-groups-loader.php

    r7062 r7277  
    8989     * Include files
    9090     */
    91     function includes() {
     91    public function includes( $includes = array() ) {
    9292        $includes = array(
    9393            'cache',
     
    121121     * @global BuddyPress $bp The one true BuddyPress instance
    122122     */
    123     function setup_globals() {
     123    public function setup_globals( $args = array() ) {
    124124        global $bp;
    125125
     
    337337     * @global BuddyPress $bp The one true BuddyPress instance
    338338     */
    339     function setup_nav() {
     339    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    340340
    341341        // Define local variables
     
    500500     * @global BuddyPress $bp The one true BuddyPress instance
    501501     */
    502     function setup_admin_bar() {
     502    public function setup_admin_bar( $wp_admin_nav = array() ) {
    503503        global $bp;
    504504
  • trunk/bp-members/bp-members-loader.php

    r6585 r7277  
    3232     * @global BuddyPress $bp The one true BuddyPress instance
    3333     */
    34     function includes() {
     34    public function includes( $includes = array() ) {
    3535        $includes = array(
    3636            'actions',
     
    5555     * @global BuddyPress $bp The one true BuddyPress instance
    5656     */
    57     function setup_globals() {
     57    public function setup_globals( $args = array() ) {
    5858        global $bp;
    5959
     
    144144     * @global BuddyPress $bp The one true BuddyPress instance
    145145     */
    146     function setup_nav() {
     146    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    147147        global $bp;
    148148
  • trunk/bp-messages/bp-messages-loader.php

    r6622 r7277  
    3939     * Include files
    4040     */
    41     function includes() {
     41    public function includes( $includes = array() ) {
    4242        // Files to include
    4343        $includes = array(
     
    6565     * @global BuddyPress $bp The one true BuddyPress instance
    6666     */
    67     function setup_globals() {
     67    public function setup_globals( $args = array() ) {
    6868        global $bp;
    6969
     
    9999     * @global BuddyPress $bp The one true BuddyPress instance
    100100     */
    101     function setup_nav() {
     101    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    102102
    103103        $sub_nav = array();
     
    178178     * @global BuddyPress $bp The one true BuddyPress instance
    179179     */
    180     function setup_admin_bar() {
     180    public function setup_admin_bar( $wp_admin_nav = array() ) {
    181181        global $bp;
    182182
  • trunk/bp-xprofile/bp-xprofile-loader.php

    r6784 r7277  
    4747     * Include files
    4848     */
    49     function includes() {
     49    public function includes( $includes = array() ) {
    5050        $includes = array(
    5151            'cssjs',
     
    7777     * @global BuddyPress $bp The one true BuddyPress instance
    7878     */
    79     function setup_globals() {
     79    public function setup_globals( $args = array() ) {
    8080        global $bp;
    8181
     
    146146     * @global BuddyPress $bp The one true BuddyPress instance
    147147     */
    148     function setup_nav() {
     148    public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    149149
    150150        $sub_nav = array();
     
    211211     * @global BuddyPress $bp The one true BuddyPress instance
    212212     */
    213     function setup_admin_bar() {
     213    public function setup_admin_bar( $wp_admin_nav = array() ) {
    214214        global $bp;
    215215
Note: See TracChangeset for help on using the changeset viewer.