Skip to content

Commit

Permalink
Fix Howdy removal for WordPress 6.6
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kovshenin committed Jul 31, 2024
1 parent 95367f3 commit adf797c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/branding/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}
Expand Down

0 comments on commit adf797c

Please sign in to comment.