Ensure the colors stylesheets have the same query string
git-svn-id: http://svn.automattic.com/wordpress/trunk@11418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
17c11fb0f9
commit
ccec7e0077
|
@ -414,6 +414,9 @@ function wp_default_styles( &$styles ) {
|
|||
|
||||
$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' );
|
||||
|
||||
// all colors stylesheets need to have the same query strings (cache manifest compat)
|
||||
$colors_version = '20090520';
|
||||
|
||||
$styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090518' );
|
||||
$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
|
||||
|
||||
|
@ -421,10 +424,10 @@ function wp_default_styles( &$styles ) {
|
|||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||
|
||||
// Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
|
||||
$styles->add( 'colors', true, array(), '20090519' );
|
||||
$styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), '20090519'); // for login.php. Is there a better way?
|
||||
$styles->add( 'colors', true, array(), $colors_version );
|
||||
$styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), $colors_version); // for login.php. Is there a better way?
|
||||
$styles->add_data( 'colors-fresh', 'rtl', true );
|
||||
$styles->add( 'colors-classic', '/wp-admin/css/colors-classic.css', array(), '20090519');
|
||||
$styles->add( 'colors-classic', '/wp-admin/css/colors-classic.css', array(), $colors_version);
|
||||
$styles->add_data( 'colors-classic', 'rtl', true );
|
||||
|
||||
$styles->add( 'global', '/wp-admin/css/global.css', array(), '20090514' );
|
||||
|
|
Loading…
Reference in New Issue