Ticket #32934: 32934.diff
File 32934.diff, 2.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/network/site-info.php
42 42 } 43 43 44 44 $details = get_blog_details( $id ); 45 if ( ! $details ) { 46 wp_die( __( 'The requested site does not exist.' ) ); 47 } 48 45 49 if ( ! can_edit_network( $details->site_id ) ) { 46 50 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 47 51 } -
src/wp-admin/network/site-settings.php
39 39 wp_die( __('Invalid site ID.') ); 40 40 41 41 $details = get_blog_details( $id ); 42 if ( ! $details ) { 43 wp_die( __( 'The requested site does not exist.' ) ); 44 } 45 42 46 if ( !can_edit_network( $details->site_id ) ) 43 47 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 44 48 -
src/wp-admin/network/site-themes.php
56 56 $wp_list_table->prepare_items(); 57 57 58 58 $details = get_blog_details( $id ); 59 if ( ! $details ) { 60 wp_die( __( 'The requested site does not exist.' ) ); 61 } 62 59 63 if ( !can_edit_network( $details->site_id ) ) 60 64 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 61 65 -
src/wp-admin/network/site-users.php
49 49 wp_die( __('Invalid site ID.') ); 50 50 51 51 $details = get_blog_details( $id ); 52 if ( ! $details ) { 53 wp_die( __( 'The requested site does not exist' ) ); 54 } 55 52 56 if ( ! can_edit_network( $details->site_id ) ) 53 57 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 54 58