WordPress.org

Make WordPress Core

Changeset 15323


Ignore:
Timestamp:
06/24/2010 07:47:44 PM (8 years ago)
Author:
westi
Message:

Fix notice when visiting the plugins page as a site admin with multisite enabled. Fixes #14010.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r15318 r15323  
    1111if ( is_multisite() ) {
    1212    $menu_perms = get_site_option( 'menu_items', array() );
    13 
    14     if ( empty($menu_perms['plugins']) && ! is_super_admin() )
    15         wp_die( __( 'Cheatin’ uh?' ) );
    16     else if ( $menu_perms['plugins'] != 1 && is_super_admin() )
    17         add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
     13       
     14    if ( empty($menu_perms['plugins'] ) || $menu_perms['plugins'] != 1 ) {
     15        if ( ! is_super_admin() )
     16            wp_die( __( 'Cheatin’ uh?' ) );
     17        else
     18            add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
     19    }
    1820}
    1921
Note: See TracChangeset for help on using the changeset viewer.