Site Health: Explicitly deprecate WP_Debug_Data::get_sizes(), unused since WP 5.6.

Follow-up to [49154], [60272].

Props yashjawale, dhruvang21, ankitkumarshah, SergeyBiryukov.
Fixes #63516.
Built from https://develop.svn.wordpress.org/trunk@60274


git-svn-id: http://core.svn.wordpress.org/trunk@59610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2025-06-03 14:23:32 +00:00
parent f53d5c599c
commit f11ca907a0
2 changed files with 3 additions and 1 deletions

View File

@@ -1866,6 +1866,8 @@ class WP_Debug_Data {
* @return array The sizes of the directories, also the database size and total installation size.
*/
public static function get_sizes() {
_deprecated_function( __METHOD__, '5.6.0', 'WP_REST_Site_Health_Controller::get_directory_sizes()' );
$size_db = self::get_database_size();
$upload_dir = wp_get_upload_dir();

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60273';
$wp_version = '6.9-alpha-60274';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.