Make WordPress Core


Ignore:
Timestamp:
12/16/2010 08:43:22 AM (14 years ago)
Author:
nacin
Message:

Remove check_permissions() calls outside of AJAX context. Also only check for switch_themes in check_permissions() for the themes table. see #15326.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r16988 r16990  
    3232            $menu_perms = get_site_option( 'menu_items', array() );
    3333
    34             if ( empty( $menu_perms['plugins'] ) ) {
    35                 if ( !is_super_admin() )
    36                     wp_die( __( 'Cheatin’ uh?' ) );
    37             }
     34            if ( empty( $menu_perms['plugins'] ) && ! is_super_admin() )
     35                wp_die( __( 'Cheatin’ uh?' ) );
    3836        }
    3937
Note: See TracChangeset for help on using the changeset viewer.