Skip to content

Commit f2ad696

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60274 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d56d51d commit f2ad696

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wp-admin/includes/class-wp-debug-data.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,8 @@ public static function get_database_size() {
18661866
* @return array The sizes of the directories, also the database size and total installation size.
18671867
*/
18681868
public static function get_sizes() {
1869+
_deprecated_function( __METHOD__, '5.6.0', 'WP_REST_Site_Health_Controller::get_directory_sizes()' );
1870+
18691871
$size_db = self::get_database_size();
18701872
$upload_dir = wp_get_upload_dir();
18711873

0 commit comments

Comments
 (0)