Make WordPress Core


Ignore:
Timestamp:
12/16/2010 08:43:22 AM (15 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/network/sites.php

    r16981 r16990  
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    1515
     16if ( ! current_user_can( 'manage_sites' ) )
     17    wp_die( __( 'You do not have permission to access this page.' ) );
     18
    1619$wp_list_table = get_list_table('WP_MS_Sites_List_Table');
    17 $wp_list_table->check_permissions();
    1820
    1921$title = __( 'Sites' );
Note: See TracChangeset for help on using the changeset viewer.