WordPress.org

Make WordPress Core

Changeset 11418


Ignore:
Timestamp:
05/20/2009 09:52:37 PM (9 years ago)
Author:
azaozz
Message:

Ensure the colors stylesheets have the same query string

File:
1 edited

Legend:

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

    r11403 r11418  
    415415    $rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' );
    416416
     417    // all colors stylesheets need to have the same query strings (cache manifest compat)
     418    $colors_version = '20090520';
     419   
    417420    $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090518' );
    418421    $styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
     
    422425
    423426    // Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
    424     $styles->add( 'colors', true, array(), '20090519' );
    425     $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20090519'); // for login.php.  Is there a better way?
     427    $styles->add( 'colors', true, array(), $colors_version );
     428    $styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), $colors_version); // for login.php.  Is there a better way?
    426429    $styles->add_data( 'colors-fresh', 'rtl', true );
    427     $styles->add( 'colors-classic', '/wp-admin/css/colors-classic.css', array(), '20090519');
     430    $styles->add( 'colors-classic', '/wp-admin/css/colors-classic.css', array(), $colors_version);
    428431    $styles->add_data( 'colors-classic', 'rtl', true );
    429432
Note: See TracChangeset for help on using the changeset viewer.