Skip to content

Commit

Permalink
Site Health: Update inline docs following refactor of debug data.
Browse files Browse the repository at this point in the history
Updates the inline docs following the modularization of the `WP_Debug_Data`.

Props kebbet, desrosj, apermo.
Fixes #61648.



git-svn-id: https://develop.svn.wordpress.org/trunk@59290 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
peterwilsoncc committed Oct 25, 2024
1 parent f890a92 commit baf408f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public static function check_for_updates() {
* @since 6.7.0 Modularized into separate theme-oriented methods.
*
* @throws ImagickException
* @global array $_wp_theme_features
*
* @return array The debug data for the site.
*/
Expand All @@ -39,14 +38,10 @@ public static function debug_data() {
* Set up the array that holds all debug information.
*
* When iterating through the debug data, the ordering of the sections
* occurs in insertion-order of the assignments into this array. Setting
* up empty values here preserves that specific ordering, so it doesn't
* depend on when inside this method each section is otherwise assigned.
*
* When all sections have been modularized, this will be the final single
* assignment of the sections before filtering and none will be empty.
* occurs in insertion-order of the assignments into this array.
*
* @ticket 61648
* This is the single assignment of the sections before filtering. Null-entries will
* be automatically be removed.
*/
$info = array(
'wp-core' => self::get_wp_core(),
Expand Down Expand Up @@ -726,7 +721,6 @@ private static function get_wp_media(): array {
);
}


/**
* Gets the WordPress MU plugins section of the debug data.
*
Expand Down Expand Up @@ -1014,6 +1008,8 @@ private static function get_wp_plugins_raw_data(): array {
*
* @since 6.7.0
*
* @global array $_wp_theme_features
*
* @return array
*/
private static function get_wp_active_theme(): array {
Expand Down

0 comments on commit baf408f

Please sign in to comment.