WordPress.org

Make WordPress Core

Ticket #30499: 30499.diff

File 30499.diff, 745 bytes (added by thomaswm, 4 years ago)

Define WP_VERSION constant in wp_initial_constants()

  • wp-includes/default-constants.php

     
    1313 * @since 3.0.0
    1414 *
    1515 * @global int $blog_id
     16 * @global string $wp_version
    1617 */
    1718function wp_initial_constants() {
    18         global $blog_id;
     19        global $blog_id, $wp_version;
    1920
    2021        // set memory limits
    2122        if ( !defined('WP_MEMORY_LIMIT') ) {
     
    121122        define( 'GB_IN_BYTES', 1024 * MB_IN_BYTES );
    122123        define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );
    123124        /**#@-*/
     125       
     126        /**#@+
     127         * Constant which stores the WordPress version.
     128         *
     129         * @since 4.6.0
     130         */
     131        define( 'WP_VERSION', $wp_version );
     132        /**#@-*/
    124133}
    125134
    126135/**