Skip to:
Content

BuddyPress.org


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