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
This commit is contained in:
parent
8b8e347d0a
commit
b8cd2bfce8
@ -504,12 +504,10 @@ function _access_denied_splash() {
|
|||||||
|
|
||||||
$blog_name = get_bloginfo( 'name' );
|
$blog_name = get_bloginfo( 'name' );
|
||||||
|
|
||||||
if ( empty( $blogs ) ) {
|
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 ) );
|
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 ) );
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$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 .= '<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>';
|
$output .= '<h3>' . __('Your Sites') . '</h3>';
|
||||||
@ -528,7 +526,6 @@ function _access_denied_splash() {
|
|||||||
$output .= '</table>';
|
$output .= '</table>';
|
||||||
|
|
||||||
wp_die( $output );
|
wp_die( $output );
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
|
add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user