Skip to content

Commit

Permalink
admin_url
Browse files Browse the repository at this point in the history
  • Loading branch information
dereksmart committed Jan 16, 2025
1 parent a4859a9 commit 47e4fd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,14 @@ function wpcom_custom_wpcom_admin_bar_class( $wp_admin_bar_class ) {
*
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar core object.
*/
function wpcom_edit_site_menu( $wp_admin_bar ) {
function wpcom_edit_site_menu_override( $wp_admin_bar ) {
if ( $wp_admin_bar->get_node( 'site-editor' ) ) {
$args = array(
'id' => 'site-editor',
'href' => home_url( '/wp-admin/site-editor.php' ),
'href' => admin_url( 'site-editor.php' ),
);

$wp_admin_bar->add_node( $args );
}
}
add_action( 'admin_bar_menu', 'wpcom_edit_site_menu', 9999 );
add_action( 'admin_bar_menu', 'wpcom_edit_site_menu_override', 9999 );

0 comments on commit 47e4fd3

Please sign in to comment.