| @@ -18,9 +18,8 @@ | ||
| 18 | 18 | use Automattic\Jetpack\Admin_UI\Admin_Menu; |
| 19 | 19 | use Automattic\Jetpack\Connection\Manager as Connection_Manager; |
| 20 | 20 | use Automattic\Jetpack\Connection\XMLRPC_Async_Call; |
| 21 | 21 | use Automattic\Jetpack\Newsletter\Settings as Newsletter_Settings; |
| 22 | -use Automattic\Jetpack\Newsletter\Urls as Newsletter_Urls; | |
| 23 | 22 | use Automattic\Jetpack\Redirect; |
| 24 | 23 | use Automattic\Jetpack\Status; |
| 25 | 24 | use Automattic\Jetpack\Status\Host; |
| 26 | 25 | |
| @@ -150,9 +149,9 @@ | ||
| 150 | 149 | // Customize the configuration URL to lead to the Subscriptions settings. |
| 151 | 150 | add_filter( |
| 152 | 151 | 'jetpack_module_configuration_url_subscriptions', |
| 153 | 152 | function () { |
| 154 | - return Newsletter_Urls::get_newsletter_settings_url(); | |
| 153 | + return Jetpack::admin_url( array( 'page' => 'jetpack#/newsletter' ) ); | |
| 155 | 154 | } |
| 156 | 155 | ); |
| 157 | 156 | |
| 158 | 157 | // Track categories created through the category editor page |
| @@ -1077,10 +1076,8 @@ | ||
| 1077 | 1076 | 'jetpack-menu-jetpack-manage-subscribers', |
| 1078 | 1077 | array( 'site' => $blog_id ? $blog_id : $status->get_site_suffix() ) |
| 1079 | 1078 | ); |
| 1080 | 1079 | |
| 1081 | - $position = defined( Admin_Menu::class . '::POSITION_EXTERNAL' ) ? Admin_Menu::POSITION_EXTERNAL : 100; | |
| 1082 | - | |
| 1083 | 1080 | Admin_Menu::add_menu( |
| 1084 | 1081 | __( 'Subscribers', 'jetpack' ), |
| 1085 | 1082 | __( 'Subscribers', 'jetpack' ) . ' <span aria-hidden="true">↗</span>', |
| 1086 | 1083 | 'manage_options', |
| @@ -1085,9 +1082,9 @@ | ||
| 1085 | 1082 | __( 'Subscribers', 'jetpack' ) . ' <span aria-hidden="true">↗</span>', |
| 1086 | 1083 | 'manage_options', |
| 1087 | 1084 | esc_url( $link ), |
| 1088 | 1085 | null, |
| 1089 | - $position, | |
| 1086 | + Admin_Menu::POSITION_EXTERNAL, | |
| 1090 | 1087 | array( 'key' => 'jetpack-subscribers' ) |
| 1091 | 1088 | ); |
| 1092 | 1089 | } |
| 1093 | 1090 | |