Skip to content

Commit 7f36b9d

Browse files
committed
Update the minimum_wp_version to WP 6.6
The minimum version should be three versions behind the latest WP release, so what with 6.9.0 slated for release on Dec 2nd, it should now become 6.6. Includes updating the tests to match. Previous: 2121, 2321. 2436, 2553
1 parent 76eeb61 commit 7f36b9d

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

WordPress/Helpers/MinimumWPVersionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ trait MinimumWPVersionTrait {
7979
*
8080
* @var string WordPress version.
8181
*/
82-
private $default_minimum_wp_version = '6.5';
82+
private $default_minimum_wp_version = '6.6';
8383

8484
/**
8585
* Overrule the minimum supported WordPress version with a command-line/config value.

WordPress/Tests/WP/DeprecatedFunctionsUnitTest.1.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,14 @@ the_block_template_skip_link();
418418
wp_admin_bar_header();
419419
wp_img_tag_add_decoding_attr();
420420
wp_update_https_detection_errors();
421-
422-
/*
423-
* Warning.
424-
*/
425421
/* ============ WP 6.5 ============ */
426422
block_core_file_ensure_interactivity_dependency();
427423
block_core_image_ensure_interactivity_dependency();
428424
block_core_query_ensure_interactivity_dependency();
425+
426+
/*
427+
* Warning.
428+
*/
429429
/* ============ WP 6.6 ============ */
430430
wp_interactivity_process_directives_of_interactive_blocks();
431431
wp_render_elements_support();

WordPress/Tests/WP/DeprecatedFunctionsUnitTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getErrorList( $testFile = '' ) {
3232
switch ( $testFile ) {
3333
case 'DeprecatedFunctionsUnitTest.1.inc':
3434
$start_line = 8;
35-
$end_line = 420;
35+
$end_line = 424;
3636
$errors = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );
3737

3838
// Unset the lines related to version comments.
@@ -84,7 +84,8 @@ public function getErrorList( $testFile = '' ) {
8484
$errors[373],
8585
$errors[383],
8686
$errors[386],
87-
$errors[410]
87+
$errors[410],
88+
$errors[421]
8889
);
8990

9091
return $errors;
@@ -109,13 +110,12 @@ public function getErrorList( $testFile = '' ) {
109110
public function getWarningList( $testFile = '' ) {
110111
switch ( $testFile ) {
111112
case 'DeprecatedFunctionsUnitTest.1.inc':
112-
$start_line = 426;
113+
$start_line = 430;
113114
$end_line = 446;
114115
$warnings = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );
115116

116117
// Unset the lines related to version comments.
117118
unset(
118-
$warnings[429],
119119
$warnings[432],
120120
$warnings[442],
121121
$warnings[444]

WordPress/Tests/WP/DeprecatedParametersUnitTest.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ wp_title_rss( 'deprecated' );
9595
wp_upload_bits( '', 'deprecated' );
9696
xfn_check( '', '', 'deprecated' );
9797
global_terms( $foo, 'deprecated' );
98-
99-
// All will give an WARNING as they have been deprecated after WP 6.5.
10098
inject_ignored_hooked_blocks_metadata_attributes('', 'deprecated');
99+
100+
// All will give an WARNING as they have been deprecated after WP 6.6.
101101
wp_render_elements_support_styles('deprecated');
102102
_wp_can_use_pcre_u('deprecated');

WordPress/Tests/WP/DeprecatedParametersUnitTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class DeprecatedParametersUnitTest extends AbstractSniffUnitTest {
2828
*/
2929
public function getErrorList() {
3030
$start_line = 42;
31-
$end_line = 97;
31+
$end_line = 98;
3232
$errors = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );
3333

3434
$errors[22] = 1;
@@ -52,7 +52,6 @@ public function getErrorList() {
5252
*/
5353
public function getWarningList() {
5454
return array(
55-
100 => 1,
5655
101 => 1,
5756
102 => 1,
5857
);

0 commit comments

Comments
 (0)