Make WordPress Core

Ticket #32934: 32934.diff

File 32934.diff, 2.0 KB (added by jeremyfelt, 9 years ago)
  • src/wp-admin/network/site-info.php

     
    4242}
    4343
    4444$details = get_blog_details( $id );
     45if ( ! $details ) {
     46        wp_die( __( 'The requested site does not exist.' ) );
     47}
     48
    4549if ( ! can_edit_network( $details->site_id ) ) {
    4650        wp_die( __( 'You do not have permission to access this page.' ), 403 );
    4751}
  • src/wp-admin/network/site-settings.php

     
    3939        wp_die( __('Invalid site ID.') );
    4040
    4141$details = get_blog_details( $id );
     42if ( ! $details ) {
     43        wp_die( __( 'The requested site does not exist.' ) );
     44}
     45
    4246if ( !can_edit_network( $details->site_id ) )
    4347        wp_die( __( 'You do not have permission to access this page.' ), 403 );
    4448
  • src/wp-admin/network/site-themes.php

     
    5656$wp_list_table->prepare_items();
    5757
    5858$details = get_blog_details( $id );
     59if ( ! $details ) {
     60        wp_die( __( 'The requested site does not exist.' ) );
     61}
     62
    5963if ( !can_edit_network( $details->site_id ) )
    6064        wp_die( __( 'You do not have permission to access this page.' ), 403 );
    6165
  • src/wp-admin/network/site-users.php

     
    4949        wp_die( __('Invalid site ID.') );
    5050
    5151$details = get_blog_details( $id );
     52if ( ! $details ) {
     53        wp_die( __( 'The requested site does not exist' ) );
     54}
     55
    5256if ( ! can_edit_network( $details->site_id ) )
    5357        wp_die( __( 'You do not have permission to access this page.' ), 403 );
    5458