GC_Customize_Manager::after_setup_theme()
最后更新于:2021-11-27 00:48:39
GC_Customize_Manager::after_setup_theme()Callback to validate a theme once it is loaded
源文件
文件: gc-includes/class-gc-customize-manager.php
public function after_setup_theme() {
$doing_ajax_or_is_customized = ( $this->doing_ajax() || isset( $_POST['customized'] ) );
if ( ! $doing_ajax_or_is_customized && ! validate_current_theme() ) {
gc_redirect( 'themes.php?broken=true' );
exit;
}
}