|
@@ -281,4 +281,26 @@ function srh25_deny_list_blocks() {
|
|
|
true
|
|
|
);
|
|
|
}
|
|
|
-add_action('enqueue_block_editor_assets', 'srh25_deny_list_blocks' );
|
|
|
+add_action('enqueue_block_editor_assets', 'srh25_deny_list_blocks' );
|
|
|
+
|
|
|
+
|
|
|
+/***********************************************************
|
|
|
+############### Unregister Patterns ########################
|
|
|
+************************************************************/
|
|
|
+
|
|
|
+function srh25_unregister_patterns() {
|
|
|
+ unregister_block_pattern( 'twentytwentyfive/vertical-header' );
|
|
|
+}
|
|
|
+add_action( 'init', 'srh25_unregister_patterns', 999 );
|
|
|
+
|
|
|
+function srh25_remove_core_patterns() {
|
|
|
+ remove_theme_support( 'core-block-patterns' );
|
|
|
+}
|
|
|
+add_action( 'after_setup_theme', 'srh25_remove_core_patterns' );
|
|
|
+
|
|
|
+
|
|
|
+add_action('wp_default_scripts', function ($scripts) {
|
|
|
+ if (!empty($scripts->registered['jquery'])) {
|
|
|
+ $scripts->registered['jquery']->deps = array_diff($scripts->registered['jquery']->deps, ['jquery-migrate']);
|
|
|
+ }
|
|
|
+});
|