Skip to content

Commit

Permalink
refactor: rename admin bar edit site menu function
Browse files Browse the repository at this point in the history
  • Loading branch information
dhananjaykuber committed Jan 16, 2025
1 parent 90851cd commit 79d614d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.8/admin-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
*/
function wp_admin_bar_edit_site_menu( $wp_admin_bar ) {
function gutenberg_wp_admin_bar_edit_site_menu( $wp_admin_bar ) {
// Don't show if a block theme is not activated.
if ( ! wp_is_block_theme() ) {
return;
Expand All @@ -35,4 +35,4 @@ function wp_admin_bar_edit_site_menu( $wp_admin_bar ) {
);
}

add_action( 'admin_bar_menu', 'wp_admin_bar_edit_site_menu', 40 );
add_action( 'admin_bar_menu', 'gutenberg_wp_admin_bar_edit_site_menu', 41 );

0 comments on commit 79d614d

Please sign in to comment.