Skip to:
Content

BuddyPress.org

Ticket #4794: bp-core-buddybar.php.patch

File bp-core-buddybar.php.patch, 1.6 KB (added by doublesharp, 12 years ago)

use 'return_false' instead of false for default screen actions

  • bp-core/bp-core-buddybar.php

     
    2727                'show_for_displayed_user' => true,  // When viewing another user does this nav item show up?
    2828                'site_admin_only'         => false, // Can only site admins see this nav item?
    2929                'position'                => 99,    // Index of where this nav item should be positioned
    30                 'screen_function'         => false, // The name of the function to run when clicked
     30                'screen_function'         => '__return_false', // The name of the function to run when clicked
    3131                'default_subnav_slug'     => false  // The slug of the default subnav item to select when clicked
    3232        );
    3333
     
    104104
    105105        $defaults = array(
    106106                'parent_slug'     => false, // Slug of the parent
    107                 'screen_function' => false, // The name of the function to run when clicked
     107                'screen_function' => '__return_false', // The name of the function to run when clicked
    108108                'subnav_slug'     => false  // The slug of the subnav item to select when clicked
    109109        );
    110110
     
    214214                'user_has_access' => true,  // Can the logged in user see this nav item?
    215215                'site_admin_only' => false, // Can only site admins see this nav item?
    216216                'position'        => 90,    // Index of where this nav item should be positioned
    217                 'screen_function' => false, // The name of the function to run when clicked
     217                'screen_function' => '__return_false', // The name of the function to run when clicked
    218218                'link'            => ''     // The link for the subnav item; optional, not usually required.
    219219        );
    220220