Add missing translation functions to the error messages added in [33889].

props kraftbj, GaryJ.
fixes #33684.
Built from https://develop.svn.wordpress.org/trunk@33892


git-svn-id: http://core.svn.wordpress.org/trunk@33861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-09-03 18:37:23 +00:00
parent e73ee5ac98
commit 9ffab31d8f
2 changed files with 5 additions and 5 deletions

View File

@ -218,13 +218,13 @@ final class WP_Customize_Manager {
if ( is_admin() && ! $doing_ajax_or_is_customized ) { if ( is_admin() && ! $doing_ajax_or_is_customized ) {
auth_redirect(); auth_redirect();
} elseif ( $doing_ajax_or_is_customized && ! is_user_logged_in() ) { } elseif ( $doing_ajax_or_is_customized && ! is_user_logged_in() ) {
$this->wp_die( 0, 'You must be logged in to complete this action.' ); $this->wp_die( 0, __( 'You must be logged in to complete this action.' ) );
} }
show_admin_bar( false ); show_admin_bar( false );
if ( ! current_user_can( 'customize' ) ) { if ( ! current_user_can( 'customize' ) ) {
$this->wp_die( -1, 'You are not allowed to customize the appearance of this site.' ); $this->wp_die( -1, __( 'You are not allowed to customize the appearance of this site.' ) );
} }
$this->original_stylesheet = get_stylesheet(); $this->original_stylesheet = get_stylesheet();
@ -238,7 +238,7 @@ final class WP_Customize_Manager {
// If the requested theme is not the active theme and the user doesn't have the // If the requested theme is not the active theme and the user doesn't have the
// switch_themes cap, bail. // switch_themes cap, bail.
if ( ! current_user_can( 'switch_themes' ) ) { if ( ! current_user_can( 'switch_themes' ) ) {
$this->wp_die( -1, 'You are not allowed to edit theme options on this site.' ); $this->wp_die( -1, __( 'You are not allowed to edit theme options on this site.' ) );
} }
// If the theme has errors while loading, bail. // If the theme has errors while loading, bail.
@ -248,7 +248,7 @@ final class WP_Customize_Manager {
// If the theme isn't allowed per multisite settings, bail. // If the theme isn't allowed per multisite settings, bail.
if ( ! $this->theme()->is_allowed() ) { if ( ! $this->theme()->is_allowed() ) {
$this->wp_die( -1, 'The requested theme does not exist.' ); $this->wp_die( -1, __( 'The requested theme does not exist.' ) );
} }
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-33891'; $wp_version = '4.4-alpha-33892';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.