Skip to:
Content

bbPress.org

Changeset 3963


Ignore:
Timestamp:
06/14/2012 04:28:05 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Admin:

  • Move global declaration beyond cap checks in bbp_admin_separator().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-functions.php

    r3962 r3963  
    1919 */
    2020function bbp_admin_separator() {
    21     global $menu;
    2221
    2322    // Prevent duplicate separators when no new menu items exist
     
    2827    if ( !current_user_can( 'manage_options' ) )
    2928        return;
     29
     30    global $menu;
    3031
    3132    $menu[] = array( '', 'read', 'separator-bbpress', '', 'wp-menu-separator bbpress' );
Note: See TracChangeset for help on using the changeset viewer.