Make WordPress Core


Ignore:
Timestamp:
09/12/2020 12:10:16 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Explicitly declare the $wp_version global used in some core files.

Props jaydeep-rami, sabernhardt.
Fixes #44932.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-constants.php

    r48372 r48971  
    1717 */
    1818function wp_initial_constants() {
    19     global $blog_id;
     19    global $blog_id, $wp_version;
    2020
    2121    /**#@+
     
    100100    // non-concatenated scripts and stylesheets.
    101101    if ( ! defined( 'SCRIPT_DEBUG' ) ) {
    102         if ( ! empty( $GLOBALS['wp_version'] ) ) {
    103             $develop_src = false !== strpos( $GLOBALS['wp_version'], '-src' );
     102        if ( ! empty( $wp_version ) ) {
     103            $develop_src = false !== strpos( $wp_version, '-src' );
    104104        } else {
    105105            $develop_src = false;
Note: See TracChangeset for help on using the changeset viewer.