| @@ -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 | } |