Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPress/Helpers/MinimumWPVersionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ trait MinimumWPVersionTrait {
*
* @var string WordPress version.
*/
private $default_minimum_wp_version = '6.5';
private $default_minimum_wp_version = '6.6';

/**
* Overrule the minimum supported WordPress version with a command-line/config value.
Expand Down
8 changes: 4 additions & 4 deletions WordPress/Tests/WP/DeprecatedFunctionsUnitTest.1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,14 @@ the_block_template_skip_link();
wp_admin_bar_header();
wp_img_tag_add_decoding_attr();
wp_update_https_detection_errors();

/*
* Warning.
*/
/* ============ WP 6.5 ============ */
block_core_file_ensure_interactivity_dependency();
block_core_image_ensure_interactivity_dependency();
block_core_query_ensure_interactivity_dependency();

/*
* Warning.
*/
/* ============ WP 6.6 ============ */
wp_interactivity_process_directives_of_interactive_blocks();
wp_render_elements_support();
Expand Down
8 changes: 4 additions & 4 deletions WordPress/Tests/WP/DeprecatedFunctionsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getErrorList( $testFile = '' ) {
switch ( $testFile ) {
case 'DeprecatedFunctionsUnitTest.1.inc':
$start_line = 8;
$end_line = 420;
$end_line = 424;
$errors = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );

// Unset the lines related to version comments.
Expand Down Expand Up @@ -84,7 +84,8 @@ public function getErrorList( $testFile = '' ) {
$errors[373],
$errors[383],
$errors[386],
$errors[410]
$errors[410],
$errors[421]
);

return $errors;
Expand All @@ -109,13 +110,12 @@ public function getErrorList( $testFile = '' ) {
public function getWarningList( $testFile = '' ) {
switch ( $testFile ) {
case 'DeprecatedFunctionsUnitTest.1.inc':
$start_line = 426;
$start_line = 430;
$end_line = 446;
$warnings = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );

// Unset the lines related to version comments.
unset(
$warnings[429],
$warnings[432],
$warnings[442],
$warnings[444]
Expand Down
4 changes: 2 additions & 2 deletions WordPress/Tests/WP/DeprecatedParametersUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ wp_title_rss( 'deprecated' );
wp_upload_bits( '', 'deprecated' );
xfn_check( '', '', 'deprecated' );
global_terms( $foo, 'deprecated' );

// All will give an WARNING as they have been deprecated after WP 6.5.
inject_ignored_hooked_blocks_metadata_attributes('', 'deprecated');

// All will give an WARNING as they have been deprecated after WP 6.6.
wp_render_elements_support_styles('deprecated');
_wp_can_use_pcre_u('deprecated');
3 changes: 1 addition & 2 deletions WordPress/Tests/WP/DeprecatedParametersUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class DeprecatedParametersUnitTest extends AbstractSniffUnitTest {
*/
public function getErrorList() {
$start_line = 42;
$end_line = 97;
$end_line = 98;
$errors = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );

$errors[22] = 1;
Expand All @@ -52,7 +52,6 @@ public function getErrorList() {
*/
public function getWarningList() {
return array(
100 => 1,
101 => 1,
102 => 1,
);
Expand Down
Loading