Changeset 16970
- Timestamp:
- 12/15/2010 07:24:42 PM (15 years ago)
- Location:
- trunk/wp-admin/network
- Files:
-
- 2 edited
-
site-themes.php (modified) (1 diff)
-
themes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-themes.php
r16833 r16970 13 13 if ( ! is_multisite() ) 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 16 $menu_perms = get_site_option( 'menu_items', array() ); 17 18 if ( empty( $menu_perms['themes'] ) ) { 19 if ( !is_super_admin() ) 20 wp_die( __( 'Cheatin’ uh?' ) ); 21 } 22 23 if ( !current_user_can('manage_sites') ) 24 wp_die( __( 'You do not have sufficient permissions to manage themes for this site.' ) ); 15 25 16 26 $wp_list_table = get_list_table('WP_MS_Themes_List_Table'); -
trunk/wp-admin/network/themes.php
r16272 r16970 13 13 if ( ! is_multisite() ) 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 16 $menu_perms = get_site_option( 'menu_items', array() ); 17 18 if ( empty( $menu_perms['themes'] ) ) { 19 if ( !is_super_admin() ) 20 wp_die( __( 'Cheatin’ uh?' ) ); 21 } 22 23 if ( !current_user_can('manage_network_themes') ) 24 wp_die( __( 'You do not have sufficient permissions to manage network themes.' ) ); 15 25 16 26 $wp_list_table = get_list_table('WP_MS_Themes_List_Table');
Note: See TracChangeset
for help on using the changeset viewer.