PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← All changes | modules/subscriptions.php +2 -5 16.3-beta → 16.3-a.1 View file →
@@ -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