Use proper placeholders. No need to exit after wp_die(). fixes #17121.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-04-29 01:51:53 +00:00
parent 06c03f44f0
commit 567f0c21ec
1 changed files with 3 additions and 6 deletions

View File

@ -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 = '<p>' . 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 ) . '</p>';
$output = '<p>' . 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 ) . '</p>';
$output .= '<p>' . __( '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.' ) . '</p>';
$output .= '<h3>' . __('Your Sites') . '</h3>';
@ -528,7 +526,6 @@ function _access_denied_splash() {
$output .= '</table>';
wp_die( $output );
exit;
}
add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );