Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/20/2010 08:48:21 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2262 props calvin_42

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core.php

    r3027 r3057  
    816816                'css_id' => $item_css_id,
    817817                'position' => $position,
    818                 'user_has_access' => $user_has_access
     818                'user_has_access' => $user_has_access,
     819                'screen_function' => $screen_function
    819820        );
    820821
    … …  
    891892        global $bp;
    892893
    893         $function = $bp->bp_options_nav[$parent_id][$slug]['screen_function'];
    894 
    895         if ( $function ) {
     894        $screen_function = $bp->bp_options_nav[$parent_id][$slug]['screen_function'];
     895
     896        if ( $screen_function ) {
    896897                if ( !is_object( $screen_function[0] ) )
    897898                        remove_action( 'wp', $screen_function, 3 );
Note: See TracChangeset for help on using the changeset viewer.