diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 13a5c12cbd..783e9a6122 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -504,12 +504,10 @@ function _access_denied_splash() { $blog_name = get_bloginfo( 'name' ); - if ( empty( $blogs ) ) { - wp_die( sprintf( __( 'You attempted to access the "%s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "Test" dashboard, please contact your network administrator.' ), $blog_name ) ); - exit; - } + if ( empty( $blogs ) ) + wp_die( sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) ); - $output = '

' . sprintf( __( 'You attempted to access the "%s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "Test" dashboard, please contact your network administrator.' ), $blog_name ) . '

'; + $output = '

' . sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '

'; $output .= '

' . __( 'If you reached this screen by accident and meant to visit one your own sites, here are some shortcuts to help you find your way.' ) . '

'; $output .= '

' . __('Your Sites') . '

'; @@ -528,7 +526,6 @@ function _access_denied_splash() { $output .= ''; wp_die( $output ); - exit; } add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );