Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/17/2013 08:19:25 AM (13 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.