Changeset 16986
- Timestamp:
- 12/16/2010 07:41:38 AM (14 years ago)
- Location:
- trunk/wp-admin/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/edit.php
r16847 r16986 175 175 wp_die( __( 'You do not have permission to access this page.' ) ); 176 176 177 if ( $id != '0' && $id != $current_site->blog_id && current_user_can 177 if ( $id != '0' && $id != $current_site->blog_id && current_user_can( 'delete_site', $id ) ) { 178 178 wpmu_delete_blog( $id, true ); 179 179 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) ); -
trunk/wp-admin/network/site-info.php
r16984 r16986 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 15 16 if ( ! current_user_can( 'manage_sites') )17 wp_die( __('You do not have sufficient permissions to edit this site.'));16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); 18 18 19 19 add_contextual_help($current_screen, -
trunk/wp-admin/network/site-new.php
r16981 r16986 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 15 16 if ( ! current_user_can( 'manage_sites') )17 wp_die( __('You do not have sufficient permissions to add sites to this network.'));16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( 'You do not have sufficient permissions to add sites to this network.' ) ); 18 18 19 19 add_contextual_help($current_screen, … … 31 31 wp_die( __( 'You do not have permission to access this page.' ) ); 32 32 33 if ( is_array( $_POST['blog'] ) == false)33 if ( ! is_array( $_POST['blog'] ) ) 34 34 wp_die( __( 'Can’t create an empty site.' ) ); 35 35 $blog = $_POST['blog']; -
trunk/wp-admin/network/site-settings.php
r16985 r16986 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 15 16 if ( ! current_user_can( 'manage_sites') )17 wp_die( __('You do not have sufficient permissions to edit this site.'));16 if ( ! current_user_can( 'manage_sites' ) ) 17 wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); 18 18 19 19 add_contextual_help($current_screen,
Note: See TracChangeset
for help on using the changeset viewer.