Changeset 33892
- Timestamp:
- 09/03/2015 06:36:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r33889 r33892 219 219 auth_redirect(); 220 220 } elseif ( $doing_ajax_or_is_customized && ! is_user_logged_in() ) { 221 $this->wp_die( 0, 'You must be logged in to complete this action.');221 $this->wp_die( 0, __( 'You must be logged in to complete this action.' ) ); 222 222 } 223 223 … … 225 225 226 226 if ( ! current_user_can( 'customize' ) ) { 227 $this->wp_die( -1, 'You are not allowed to customize the appearance of this site.');227 $this->wp_die( -1, __( 'You are not allowed to customize the appearance of this site.' ) ); 228 228 } 229 229 … … 239 239 // switch_themes cap, bail. 240 240 if ( ! current_user_can( 'switch_themes' ) ) { 241 $this->wp_die( -1, 'You are not allowed to edit theme options on this site.');241 $this->wp_die( -1, __( 'You are not allowed to edit theme options on this site.' ) ); 242 242 } 243 243 … … 249 249 // If the theme isn't allowed per multisite settings, bail. 250 250 if ( ! $this->theme()->is_allowed() ) { 251 $this->wp_die( -1, 'The requested theme does not exist.');251 $this->wp_die( -1, __( 'The requested theme does not exist.' ) ); 252 252 } 253 253 }
Note: See TracChangeset
for help on using the changeset viewer.