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.2';
private $default_minimum_wp_version = '6.5';

/**
* Overrule the minimum supported WordPress version with a command-line/config value.
Expand Down
6 changes: 3 additions & 3 deletions WordPress/Tests/WP/DeprecatedClassesUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ $json = new Services_JSON;
$json = new Services_JSON_Error;
class Prefix_Menu_section extends WP_Privacy_Data_Export_Requests_Table {}
WP_Privacy_Data_Removal_Requests_Table::foo();
/* ============ WP 6.4 ============ */
WP_Http_Curl::do_something();
$streams = new WP_Http_Streams();

/*
* Warning
*/
/* ============ WP 6.4 ============ */
WP_Http_Curl::do_something();
$streams = new WP_Http_Streams();
9 changes: 3 additions & 6 deletions WordPress/Tests/WP/DeprecatedClassesUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ final class DeprecatedClassesUnitTest extends AbstractSniffUnitTest {
*/
public function getErrorList() {
$start_line = 9;
$end_line = 25;
$end_line = 28;
$errors = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );

// Unset the lines related to version comments.
unset( $errors[16], $errors[18], $errors[21] );
unset( $errors[16], $errors[18], $errors[21], $errors[26] );

return $errors;
}
Expand All @@ -43,9 +43,6 @@ public function getErrorList() {
* @return array<int, int> Key is the line number, value is the number of expected warnings.
*/
public function getWarningList() {
return array(
31 => 1,
32 => 1,
);
return array();
}
}
8 changes: 4 additions & 4 deletions WordPress/Tests/WP/DeprecatedFunctionsUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,6 @@ install_global_terms();
sync_category_tag_slugs();
wp_get_attachment_thumb_file();
wp_typography_get_css_variable_inline_style();

/*
* Warning.
*/
/* ============ WP 6.2 ============ */
_resolve_home_block_template();
get_page_by_title();
Expand Down Expand Up @@ -422,6 +418,10 @@ 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();
Expand Down
12 changes: 6 additions & 6 deletions WordPress/Tests/WP/DeprecatedFunctionsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class DeprecatedFunctionsUnitTest extends AbstractSniffUnitTest {
*/
public function getErrorList() {
$start_line = 8;
$end_line = 382;
$end_line = 420;
$errors = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );

// Unset the lines related to version comments.
Expand Down Expand Up @@ -77,7 +77,10 @@ public function getErrorList() {
$errors[363],
$errors[369],
$errors[371],
$errors[373]
$errors[373],
$errors[383],
$errors[386],
$errors[410]
);

return $errors;
Expand All @@ -89,15 +92,12 @@ public function getErrorList() {
* @return array<int, int> Key is the line number, value is the number of expected warnings.
*/
public function getWarningList() {
$start_line = 388;
$start_line = 426;
$end_line = 443;
$warnings = array_fill( $start_line, ( ( $end_line - $start_line ) + 1 ), 1 );

// Unset the lines related to version comments.
unset(
$warnings[390],
$warnings[414],
$warnings[425],
$warnings[429],
$warnings[432],
$warnings[442]
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Tests/WP/DeprecatedParametersUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ wp_upload_bits( '', 'deprecated' );
xfn_check( '', '', 'deprecated' );
global_terms( $foo, 'deprecated' );

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