Make WordPress Core

Changeset 25692


Ignore:
Timestamp:
10/05/2013 02:24:21 PM (12 years ago)
Author:
nacin
Message:

Append -src to the $wp_version in the develop repo (only) to allow for us to differentiate. see #25161.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r25549 r25692  
    4949 */
    5050function wp_default_scripts( &$scripts ) {
    51 
     51    include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     52
     53    if ( ! defined( 'SCRIPT_DEBUG' ) )
     54        define( 'SCRIPT_DEBUG', false !== strpos( $wp_version, '-src' ) );
    5255
    5356    if ( ! $guessurl = site_url() ) {
     
    6063    $scripts->default_version = get_bloginfo( 'version' );
    6164    $scripts->default_dirs = array('/wp-admin/js/', '/wp-includes/js/');
    62 
    63     if ( ! defined( 'SCRIPT_DEBUG' ) )
    64         define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/js/wp-util.min.js' ) );
    6565
    6666    $suffix = SCRIPT_DEBUG ? '' : '.min';
     
    532532 */
    533533function wp_default_styles( &$styles ) {
     534    include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     535
     536    if ( ! defined( 'SCRIPT_DEBUG' ) )
     537        define( 'SCRIPT_DEBUG', false !== strpos( $wp_version, '-src' ) );
    534538
    535539    if ( ! $guessurl = site_url() )
     
    541545    $styles->text_direction = function_exists( 'is_rtl' ) && is_rtl() ? 'rtl' : 'ltr';
    542546    $styles->default_dirs = array('/wp-admin/', '/wp-includes/css/');
    543 
    544     if ( ! defined( 'SCRIPT_DEBUG' ) )
    545         define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/js/wp-util.min.js' ) );
    546547
    547548    $suffix = SCRIPT_DEBUG ? '' : '.min';
  • trunk/src/wp-includes/version.php

    r25639 r25692  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '3.7-beta1-25639';
     7$wp_version = '3.7-beta1-25639-src';
    88
    99/**
Note: See TracChangeset for help on using the changeset viewer.