PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
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 13.7.2 13.8.3 All 506 releases
← All changes | modules/scan/class-admin-sidebar-link.php +5 -3 16.3-a.1 → 16.3-a.5 View file →
@@ -67,8 +67,10 @@
67 67 if ( ! $this->should_show_link() ) {
68 68 return;
69 69 }
70 70
71 + $position = defined( Admin_Menu::class . '::POSITION_EXTERNAL' ) ? Admin_Menu::POSITION_EXTERNAL : 100;
72 +
71 73 if ( $this->should_show_scan() ) {
72 74 Admin_Menu::add_menu(
73 75 /** "Scan" is a product name, do not translate. */
74 76 'Scan',
@@ -75,9 +77,9 @@
75 77 'Scan <span aria-hidden="true">↗</span>',
76 78 'manage_options',
77 79 esc_url( Redirect::get_url( 'cloud-scan-history-wp-menu' ) ),
78 80 null,
79 - Admin_Menu::POSITION_EXTERNAL,
81 + $position,
80 82 array( 'key' => 'jetpack-scan-cloud' )
81 83 );
82 84 }
83 85
@@ -89,9 +91,9 @@
89 91 'Scan <span aria-hidden="true">↗</span>',
90 92 'manage_options',
91 93 esc_url( Redirect::get_url( 'cloud-scan-history-wp-menu' ) ),
92 94 null,
93 - Admin_Menu::POSITION_EXTERNAL,
95 + $position,
94 96 array( 'key' => 'jetpack-scan-cloud' )
95 97 );
96 98 }
97 99
@@ -102,9 +104,9 @@
102 104 'VaultPress Backup <span aria-hidden="true">↗</span>',
103 105 'manage_options',
104 106 esc_url( Redirect::get_url( 'calypso-backups' ) ),
105 107 null,
106 - Admin_Menu::POSITION_EXTERNAL,
108 + $position,
107 109 array( 'key' => 'jetpack-backup-cloud' )
108 110 );
109 111 }
110 112 }