WordPress.org

Make WordPress Core

Ticket #44932: 44932.2.patch

File 44932.2.patch, 959 bytes (added by Jaydeep Rami, 14 months ago)

Fix: Ticket #44932 create with src/ path

  • src/wp-includes/default-constants.php

     
    1616 * @global string $wp_version The WordPress version string.
    1717 */
    1818function wp_initial_constants() {
    19         global $blog_id;
     19        global $blog_id, $wp_version;
    2020
    2121        /**#@+
    2222         * Constants for expressing human-readable data sizes in their respective number of bytes.
     
    9090        // Add define('SCRIPT_DEBUG', true); to wp-config.php to enable loading of non-minified,
    9191        // non-concatenated scripts and stylesheets.
    9292        if ( ! defined( 'SCRIPT_DEBUG' ) ) {
    93                 if ( ! empty( $GLOBALS['wp_version'] ) ) {
    94                         $develop_src = false !== strpos( $GLOBALS['wp_version'], '-src' );
     93                if ( ! empty( $wp_version ) ) {
     94                        $develop_src = false !== strpos( $wp_version, '-src' );
    9595                } else {
    9696                        $develop_src = false;
    9797                }