From b8cd2bfce87e953198fdb8380e01c5cafd3635e7 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 29 Apr 2011 01:51:53 +0000 Subject: [PATCH] Use proper placeholders. No need to exit after wp_die(). fixes #17121. git-svn-id: https://develop.svn.wordpress.org/trunk@17763 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/ms.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 );