From adf797cc5b01b08cd92b260e275724b594986e6f Mon Sep 17 00:00:00 2001 From: Konstantin Kovshenin Date: Wed, 31 Jul 2024 09:20:49 +0100 Subject: [PATCH] Fix Howdy removal for WordPress 6.6 Core 6.6 moved some priorities around for admin bar nodes. Our old priority can't find the my-account node because it's added at a later priority. See: https://core.trac.wordpress.org/changeset/58759 --- inc/branding/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/branding/namespace.php b/inc/branding/namespace.php index b49e17e6..3c526d59 100644 --- a/inc/branding/namespace.php +++ b/inc/branding/namespace.php @@ -43,7 +43,7 @@ function bootstrap() { add_filter( 'get_the_generator_rss2', __NAMESPACE__ . '\\override_generator', 10, 2 ); add_filter( 'get_the_generator_comment', __NAMESPACE__ . '\\override_generator', 10, 2 ); add_filter( 'get_the_generator_export', __NAMESPACE__ . '\\override_generator', 10, 2 ); - add_filter( 'admin_bar_menu', __NAMESPACE__ . '\\remove_howdy_greeting', 25 ); + add_filter( 'admin_bar_menu', __NAMESPACE__ . '\\remove_howdy_greeting', 9992 ); add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\\enqueue_block_editor_branding_assets' ); add_action( 'do_faviconico', __NAMESPACE__ . '\\override_default_favicon' ); }