Skip to content

Commit

Permalink
Remove WP 6.0 related code since it's deprecated now (#5978)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum authored Nov 8, 2024
1 parent 56df329 commit 7273adb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
matrix:
config:
# PHP 8.1, Jetpack
- { wp: 6.0.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.0.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.1.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.1.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
Expand All @@ -40,6 +38,8 @@ jobs:
- { wp: 6.4.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.5.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.5.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.6.x, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: 6.6.x, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: latest, ms: 'no', jp: 'yes', php: '8.1', phpunit: '', coverage: 'yes' }
- { wp: latest, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '', coverage: 'yes' }
- { wp: nightly, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
Expand Down
5 changes: 1 addition & 4 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
function vip_default_jetpack_version() {
global $wp_version;

if ( version_compare( $wp_version, '6.1', '<' ) ) {
// WordPress 6.0.x
return '12.0';
} elseif ( version_compare( $wp_version, '6.2', '<' ) ) {
if ( version_compare( $wp_version, '6.2', '<' ) ) {
// WordPress 6.1.x
return '12.5';
} elseif ( version_compare( $wp_version, '6.3', '<' ) ) {
Expand Down
1 change: 0 additions & 1 deletion tests/test-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public function test__vip_default_jetpack_version() {

$versions_map = [
// WordPress version => Jetpack version
'6.0' => '12.0',
'6.1' => '12.5',
'6.2' => '12.8',
'6.3' => '13.1',
Expand Down

0 comments on commit 7273adb

Please sign in to comment.