Skip to content

Commit

Permalink
同步 default-filters.php 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
swling committed Mar 30, 2023
1 parent 8842fbd commit 8af4ea8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions accelerator/default-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@
// add_action( 'init', '_register_core_block_patterns_and_categories' );
add_action( 'init', 'check_theme_switched', 99 );
// add_action( 'init', array( 'WP_Block_Supports', 'init' ), 22 );
// add_action( 'switch_theme', array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) );
// add_action( 'start_previewing_theme', array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) );
// add_action( 'switch_theme', 'wp_clean_theme_json_cache' );
// add_action( 'start_previewing_theme', 'wp_clean_theme_json_cache' );
add_action( 'after_switch_theme', '_wp_menus_changed' );
// add_action( 'after_switch_theme', '_wp_sidebars_changed' );
// add_action( 'wp_print_styles', 'print_emoji_styles' );
Expand Down Expand Up @@ -577,6 +577,9 @@
// add_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
// add_action( 'wp_footer', 'wp_enqueue_global_styles', 1 );

// Global styles custom CSS.
// add_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles_custom_css' );

// Block supports, and other styles parsed and stored in the Style Engine.
// add_action( 'wp_enqueue_scripts', 'wp_enqueue_stored_styles' );
// add_action( 'wp_footer', 'wp_enqueue_stored_styles', 1 );
Expand Down Expand Up @@ -617,11 +620,13 @@

// Nav menu.
add_filter( 'nav_menu_item_id', '_nav_menu_item_id_use_once', 10, 2 );
add_filter( 'nav_menu_css_class', 'wp_nav_menu_remove_menu_item_has_children_class', 10, 4 );

// Widgets.
// add_action( 'after_setup_theme', 'wp_setup_widgets_block_editor', 1 );
// add_action( 'init', 'wp_widgets_init', 1 );
// add_action( 'change_locale', array( 'WP_Widget_Media', 'reset_default_labels' ) );
// add_action( 'widgets_init', '_wp_block_theme_register_classic_sidebars', 1 );

// Admin Bar.
// Don't remove. Wrong way to disable.
Expand Down

0 comments on commit 8af4ea8

Please sign in to comment.