From 3a6fdfaf10d9e81b12af94327114867ce4450e2b Mon Sep 17 00:00:00 2001 From: Ramon Date: Thu, 12 Dec 2019 21:40:11 +1100 Subject: [PATCH] Masterbar: Update the Reader link (#14214) * Update the Reader link to go to wordpress.com/read as we're performing A/B tests in Calypso on different default landing page destinations. Context: https://github.com/Automattic/wp-calypso/pull/37547 * Update Reader link in Masterbar as well Co-authored-by: Jeremy Herve --- modules/calypsoify/class.jetpack-calypsoify.php | 2 +- modules/masterbar/masterbar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/calypsoify/class.jetpack-calypsoify.php b/modules/calypsoify/class.jetpack-calypsoify.php index eb0874da1cdd5..36db8ea892187 100644 --- a/modules/calypsoify/class.jetpack-calypsoify.php +++ b/modules/calypsoify/class.jetpack-calypsoify.php @@ -305,7 +305,7 @@ public function modify_masterbar() { $wp_admin_bar->add_node( $my_sites_node ); $reader_node = (object) $wp_admin_bar->get_node( 'newdash' ); - $reader_node->href = 'https://wordpress.com'; + $reader_node->href = 'https://wordpress.com/read'; $wp_admin_bar->add_node( $reader_node ); $me_node = (object) $wp_admin_bar->get_node( 'my-account' ); diff --git a/modules/masterbar/masterbar.php b/modules/masterbar/masterbar.php index e782468f99074..cbc082e14ea92 100644 --- a/modules/masterbar/masterbar.php +++ b/modules/masterbar/masterbar.php @@ -428,7 +428,7 @@ public function add_reader_submenu( $wp_admin_bar ) { $following_title = $this->create_menu_item_pair( array( - 'url' => 'https://wordpress.com/', + 'url' => 'https://wordpress.com/read', 'id' => 'wp-admin-bar-followed-sites', 'label' => esc_html__( 'Followed Sites', 'jetpack' ), ),