General: Further improve error messages following [42648].

Props kristastevens, melchoyce.
Fixes #38332 for trunk.


Built from https://develop.svn.wordpress.org/trunk@42719


git-svn-id: http://core.svn.wordpress.org/trunk@42547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson
2018-02-19 02:13:32 +00:00
parent 5eddf9a359
commit e6ccdf161f
25 changed files with 53 additions and 53 deletions

View File

@@ -447,7 +447,7 @@ final class WP_Customize_Manager {
}
if ( ! $message ) {
$message = __( 'An error has occurred.' );
$message = __( 'Something went wrong.' );
}
if ( $this->messenger_channel ) {
@@ -512,7 +512,7 @@ final class WP_Customize_Manager {
auth_redirect();
} else {
wp_die(
'<h1>' . __( 'You don&#8217;t have permission to do this.' ) . '</h1>' .
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
'<p>' . __( 'Sorry, you are not allowed to customize this site.' ) . '</p>',
403
);