Ticket #33684: 33684.diff
| File 33684.diff, 1.5 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/class-wp-customize-manager.php
218 218 if ( is_admin() && ! $doing_ajax_or_is_customized ) { 219 219 auth_redirect(); 220 220 } elseif ( $doing_ajax_or_is_customized && ! is_user_logged_in() ) { 221 $this->wp_die( 0 );221 $this->wp_die( 0, 'You must be logged in to complete this action.' ); 222 222 } 223 223 224 224 show_admin_bar( false ); 225 225 226 226 if ( ! current_user_can( 'customize' ) ) { 227 $this->wp_die( -1 );227 $this->wp_die( -1, 'You are not allowed to customize the appearance of this site.' ); 228 228 } 229 229 230 230 $this->original_stylesheet = get_stylesheet(); … … 238 238 // If the requested theme is not the active theme and the user doesn't have the 239 239 // switch_themes cap, bail. 240 240 if ( ! current_user_can( 'switch_themes' ) ) { 241 $this->wp_die( -1 );241 $this->wp_die( -1, 'You are not allowed to edit theme options on this site.' ); 242 242 } 243 243 244 244 // If the theme has errors while loading, bail. 245 245 if ( $this->theme()->errors() ) { 246 $this->wp_die( -1 );246 $this->wp_die( -1, $this->theme()->errors()->get_error_message() ); 247 247 } 248 248 249 249 // If the theme isn't allowed per multisite settings, bail. 250 250 if ( ! $this->theme()->is_allowed() ) { 251 $this->wp_die( -1 );251 $this->wp_die( -1, 'The requested theme does not exist.' ); 252 252 } 253 253 } 254 254
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)