mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
More caps back. See #15326
git-svn-id: http://svn.automattic.com/wordpress/trunk@16970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50669e46f6
commit
d76925ec0f
@ -13,6 +13,16 @@ require_once( './admin.php' );
|
|||||||
if ( ! is_multisite() )
|
if ( ! is_multisite() )
|
||||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||||
|
|
||||||
|
$menu_perms = get_site_option( 'menu_items', array() );
|
||||||
|
|
||||||
|
if ( empty( $menu_perms['themes'] ) ) {
|
||||||
|
if ( !is_super_admin() )
|
||||||
|
wp_die( __( 'Cheatin’ uh?' ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_sites') )
|
||||||
|
wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) );
|
||||||
|
|
||||||
$wp_list_table = get_list_table('WP_MS_Themes_List_Table');
|
$wp_list_table = get_list_table('WP_MS_Themes_List_Table');
|
||||||
$wp_list_table->check_permissions();
|
$wp_list_table->check_permissions();
|
||||||
|
|
||||||
|
@ -13,6 +13,16 @@ require_once( './admin.php' );
|
|||||||
if ( ! is_multisite() )
|
if ( ! is_multisite() )
|
||||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||||
|
|
||||||
|
$menu_perms = get_site_option( 'menu_items', array() );
|
||||||
|
|
||||||
|
if ( empty( $menu_perms['themes'] ) ) {
|
||||||
|
if ( !is_super_admin() )
|
||||||
|
wp_die( __( 'Cheatin’ uh?' ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_network_themes') )
|
||||||
|
wp_die( __( 'You do not have sufficient permissions to manage network themes.' ) );
|
||||||
|
|
||||||
$wp_list_table = get_list_table('WP_MS_Themes_List_Table');
|
$wp_list_table = get_list_table('WP_MS_Themes_List_Table');
|
||||||
$wp_list_table->check_permissions();
|
$wp_list_table->check_permissions();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user