From 27619d3298488fd820de50e3073565b01934fa52 Mon Sep 17 00:00:00 2001 From: Christoph Daum Date: Sun, 8 Mar 2026 14:47:00 +0100 Subject: [PATCH 1/3] fix(hooks): use add_action for admin_print_styles Change add_filter() to add_action() for the admin_print_styles hook which is fired via do_action(). Related to https://core.trac.wordpress.org/ticket/64828 --- src/wp-admin/includes/admin-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/admin-filters.php b/src/wp-admin/includes/admin-filters.php index 6776f5898ad58..edf3b010c6b86 100644 --- a/src/wp-admin/includes/admin-filters.php +++ b/src/wp-admin/includes/admin-filters.php @@ -53,7 +53,7 @@ // Prerendering. if ( ! is_customize_preview() ) { - add_filter( 'admin_print_styles', 'wp_resource_hints', 1 ); + add_action( 'admin_print_styles', 'wp_resource_hints', 1 ); } add_action( 'admin_print_scripts', 'print_emoji_detection_script' ); From 9867f2a0405dbc9a1346bc891a6c9ec0f5d55e31 Mon Sep 17 00:00:00 2001 From: Christoph Daum Date: Sun, 8 Mar 2026 14:47:26 +0100 Subject: [PATCH 2/3] fix(hooks): use add_action for login_head Change add_filter() to add_action() for the login_head hook which is fired via do_action(). Related to https://core.trac.wordpress.org/ticket/64828 --- src/wp-includes/default-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 0bcd2d6b15acb..796cf00ec81e1 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -385,7 +385,7 @@ // Login actions. add_action( 'login_head', 'wp_robots', 1 ); -add_filter( 'login_head', 'wp_resource_hints', 8 ); +add_action( 'login_head', 'wp_resource_hints', 8 ); add_action( 'login_head', 'wp_print_head_scripts', 9 ); add_action( 'login_head', 'print_admin_styles', 9 ); add_action( 'login_head', 'wp_site_icon', 99 ); From d89ccf8550017ac8abeaef360d53679b63376531 Mon Sep 17 00:00:00 2001 From: Christoph Daum Date: Sun, 8 Mar 2026 14:52:22 +0100 Subject: [PATCH 3/3] fix(hooks): use add_filter for block editor filter Change add_action() to add_filter() for the use_block_editor_for_post_type hook which is fired via apply_filters(). Related to https://core.trac.wordpress.org/ticket/64828 --- src/wp-admin/includes/admin-filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/admin-filters.php b/src/wp-admin/includes/admin-filters.php index edf3b010c6b86..5337cc02c88c9 100644 --- a/src/wp-admin/includes/admin-filters.php +++ b/src/wp-admin/includes/admin-filters.php @@ -85,7 +85,7 @@ add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' ); -add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 ); +add_filter( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 ); add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' ); add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );