[wp-trac] [WordPress Trac] #63516: Explicitly deprecate WP_Debug_Data::get_sizes()

WordPress Trac noreply at wordpress.org
Wed Jun 4 11:18:51 UTC 2025


#63516: Explicitly deprecate WP_Debug_Data::get_sizes()
--------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov            |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Site Health               |     Version:  5.6
 Severity:  minor                     |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------

Comment (by logicrays):

 I have reviewed the change. Since WP_Debug_Data::get_sizes() is no longer
 used in core and was soft-deprecated earlier, it’s appropriate to
 explicitly deprecate it now. Adding _deprecated_function() at the start of
 the method helps notify developers and ensures proper guidance. The
 correct call to use is:


 {{{
 _deprecated_function( __METHOD__, '5.6.0',
 'WP_REST_Site_Health_Controller::get_directory_sizes()' );

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63516#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list