We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b723c92 commit ac9298fCopy full SHA for ac9298f
lib/compat/wordpress-6.0/block-patterns.php
@@ -35,9 +35,13 @@ function gutenberg_register_remote_theme_patterns() {
35
add_action(
36
'current_screen',
37
function( $current_screen ) {
38
- $should_load_remote = apply_filters( 'should_load_remote_block_patterns', true );
39
- $theme_has_support = WP_Theme_JSON_Resolver_Gutenberg::theme_has_support();
40
- if ( ! get_theme_support( 'core-block-patterns' ) || ! $should_load_remote || ! $theme_has_support ) {
+ if ( ! get_theme_support( 'core-block-patterns' ) ) {
+ return;
+ }
41
+ if ( ! apply_filters( 'should_load_remote_block_patterns', true ) ) {
42
43
44
+ if ( ! WP_Theme_JSON_Resolver_Gutenberg::theme_has_support() ) {
45
return;
46
}
47
0 commit comments