if ( !
current_user_can( 'customize'
) && !
$this->
changeset_post_id() ) { $this->
wp_die( $this->messenger_channel ? 0 : -1,
__( 'Non-existent changeset UUID.'
) );
} if ( !
headers_sent() ) { send_origin_headers();
} // Hide the admin bar if we're embedded in the customizer iframe.
if ( $this->messenger_channel
) { show_admin_bar( false
);
} if ( $this->
is_theme_active() ) { // Once the theme is loaded, we'll validate it.
add_action( 'after_setup_theme', array
( $this, 'after_setup_theme'
) );
} else { /*
* If the requested theme is not the active theme and the user doesn't have
* the switch_themes cap, bail.
*/
if ( !
current_user_can( 'switch_themes'
) ) {