Unregister Jetpack form patterns on atomic sites (#7634)

This commit is contained in:
Miguel San Segundo 2024-02-02 19:53:17 +07:00 committed by GitHub
parent 2108bd035f
commit 568180b89f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,12 @@ if ( ! function_exists( 'assembler_setup' ) ) :
// Enqueue editor styles.
add_editor_style( 'style.css' );
// Unregister Jetpack form patterns and core patterns bundled in WordPress.
// Simple sites
assembler_unregister_patterns();
add_filter( 'wp_loaded', function () {
// Atomic sites
assembler_unregister_patterns();
} );
// Remove theme support for the core and featured patterns coming from the Dotorg pattern directory.
remove_theme_support( 'core-block-patterns' );
}