Skip to:
Content

BuddyPress.org

Changeset 1904 for trunk/bp-core.php


Ignore:
Timestamp:
09/21/2009 04:49:17 PM (16 years ago)
Author:
apeatling
Message:

Group fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1896 r1904  
    623623
    624624    if ( $bp->current_component == $slug && !$bp->current_action ) {
    625         if ( function_exists( $screen_function ) )
    626             add_action( 'wp', $function, 3 );
     625        if ( !is_object( $screen_function[0] ) )
     626            add_action( 'wp', $screen_function, 3 );
     627        else
     628            add_action( 'wp', array( &$screen_function[0], $screen_function[1] ), 3 );
    627629
    628630        if ( $default_subnav_slug )
     
    726728       
    727729    if ( ( $bp->current_action == $slug && $bp->current_component == $parent_slug ) && $user_has_access ) {
    728         if ( !is_object($screen_function[0]) )
     730        if ( !is_object( $screen_function[0] ) )
    729731            add_action( 'wp', $screen_function, 3 );
    730732        else
Note: See TracChangeset for help on using the changeset viewer.