mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ee09cadd94
commit
0c4bd8cfc3
@ -29,13 +29,13 @@ class WP_Debug_Data {
|
||||
* @since 5.5.0 Added pretty permalinks support information.
|
||||
*
|
||||
* @throws ImagickException
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global $_wp_theme_features
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global array $_wp_theme_features
|
||||
*
|
||||
* @return array The debug data for the site.
|
||||
*/
|
||||
public static function debug_data() {
|
||||
global $wpdb;
|
||||
global $wpdb, $_wp_theme_features;
|
||||
|
||||
// Save few function calls.
|
||||
$upload_dir = wp_upload_dir();
|
||||
@ -1065,7 +1065,6 @@ class WP_Debug_Data {
|
||||
}
|
||||
|
||||
// Populate the section for the currently active theme.
|
||||
global $_wp_theme_features;
|
||||
$theme_features = array();
|
||||
|
||||
if ( ! empty( $_wp_theme_features ) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user