Docs: Add missing type for $_wp_theme_features in WP_Debug_Data::debug_data().

Includes moving the global declaration to the top of the method for consistency.

Follow-up to [44986], [54953].

See #57069, #56792.
Built from https://develop.svn.wordpress.org/trunk@54954


git-svn-id: http://core.svn.wordpress.org/trunk@54506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-12-09 12:25:14 +00:00
parent 01102b3d6e
commit 2043081e9e
2 changed files with 4 additions and 5 deletions

View File

@ -30,12 +30,12 @@ class WP_Debug_Data {
* *
* @throws ImagickException * @throws ImagickException
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* @global $_wp_theme_features * @global array $_wp_theme_features
* *
* @return array The debug data for the site. * @return array The debug data for the site.
*/ */
public static function debug_data() { public static function debug_data() {
global $wpdb; global $wpdb, $_wp_theme_features;
// Save few function calls. // Save few function calls.
$upload_dir = wp_upload_dir(); $upload_dir = wp_upload_dir();
@ -1065,7 +1065,6 @@ class WP_Debug_Data {
} }
// Populate the section for the currently active theme. // Populate the section for the currently active theme.
global $_wp_theme_features;
$theme_features = array(); $theme_features = array();
if ( ! empty( $_wp_theme_features ) ) { if ( ! empty( $_wp_theme_features ) ) {

View File

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