feat(widgets): complete phase 3 atomic integration
This commit is contained in:
@@ -56,6 +56,9 @@ final class SchemaWidget extends \WP_Widget {
|
||||
if (wp_doing_ajax() && isset($_REQUEST['action']) && $_REQUEST['action'] === AdminFormController::AJAX_ACTION) {
|
||||
return false;
|
||||
}
|
||||
if (function_exists('is_customize_preview') && is_customize_preview()) {
|
||||
return true;
|
||||
}
|
||||
$screen = function_exists('get_current_screen') ? get_current_screen() : null;
|
||||
return $screen && in_array($screen->id, ['widgets', 'customize'], true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user