Make WordPress Core

Changeset 54954


Ignore:
Timestamp:
12/09/2022 12:23:46 PM (21 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r54953 r54954  
    3030     *
    3131     * @throws ImagickException
    32      * @global wpdb $wpdb WordPress database abstraction object.
    33      * @global $_wp_theme_features
     32     * @global wpdb  $wpdb              WordPress database abstraction object.
     33     * @global array $_wp_theme_features
    3434     *
    3535     * @return array The debug data for the site.
    3636     */
    3737    public static function debug_data() {
    38         global $wpdb;
     38        global $wpdb, $_wp_theme_features;
    3939
    4040        // Save few function calls.
     
    10661066
    10671067        // Populate the section for the currently active theme.
    1068         global $_wp_theme_features;
    10691068        $theme_features = array();
    10701069
Note: See TracChangeset for help on using the changeset viewer.