diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 4b1982454c..766253b1ea 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -61,8 +61,35 @@ class WP_Debug_Data { } } - // Set up the array that holds all debug information. - $info = array(); + /* + * 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. + * + * @ticket 61648 + */ + $info = array( + 'wp-core' => array(), + 'wp-paths-sizes' => array(), + 'wp-dropins' => array(), + 'wp-active-theme' => array(), + 'wp-parent-theme' => array(), + 'wp-themes-inactive' => array(), + 'wp-mu-plugins' => array(), + 'wp-plugins-active' => array(), + 'wp-plugins-inactive' => array(), + 'wp-media' => array(), + 'wp-server' => array(), + 'wp-database' => self::get_wp_database(), + 'wp-constants' => self::get_wp_constants(), + 'wp-filesystem' => self::get_wp_filesystem(), + ); $info['wp-core'] = array( 'label' => __( 'WordPress' ), @@ -1154,10 +1181,6 @@ class WP_Debug_Data { ); } - $info['wp-constants'] = self::get_wp_constants(); - $info['wp-database'] = self::get_wp_database(); - $info['wp-filesystem'] = self::get_wp_filesystem(); - /** * Filters the debug information shown on the Tools -> Site Health -> Info screen. * diff --git a/wp-includes/version.php b/wp-includes/version.php index c96930199c..6b9fe875c4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58995'; +$wp_version = '6.7-alpha-58996'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.