From 7232c0f8948c2c5278fdc2c6261afbbd514a6e1a Mon Sep 17 00:00:00 2001 From: okmttdhr Date: Thu, 8 Aug 2024 15:33:17 +0900 Subject: [PATCH] Add comments --- .../src/features/wpcom-admin-bar/wpcom-admin-bar.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php index a31a7a0ba54d7..644c536dc242c 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-bar/wpcom-admin-bar.php @@ -171,10 +171,13 @@ function wpcom_maybe_replace_edit_profile_menu_to_me( $wp_admin_bar ) { // // Then, the Edit Profile menu should point to /me, instead of the site's profile.php. if ( ! is_user_member_of_blog() || get_option( 'wpcom_admin_interface' ) !== 'wp-admin' ) { + + // Temporarily point to wpcalypso.wordpress.com for testing purposes. $url = 'https://wordpress.com/me'; if ( get_option( 'wpcom_site_level_user_profile' ) === '1' ) { $url = 'https://wpcalypso.wordpress.com/me'; } + $edit_profile_node->href = maybe_add_origin_site_id_to_url( $url ); $wp_admin_bar->add_node( (array) $edit_profile_node ); } @@ -194,6 +197,7 @@ function wpcom_add_my_account_item_to_profile_menu( $wp_admin_bar ) { $wp_admin_bar->remove_node( 'logout' ); } + // Temporarily point to wpcalypso.wordpress.com for testing purposes. $url = 'https://wordpress.com/me/account'; if ( get_option( 'wpcom_site_level_user_profile' ) === '1' ) { $url = 'https://wpcalypso.wordpress.com/me/account';