CSS: Rename the handle for `deprecated-media.css` after [36341].
The `media` handle is now used for `media.css` thus the stylesheet for the old media UI needs a different handle name. See #35229. Built from https://develop.svn.wordpress.org/trunk@36869 git-svn-id: http://core.svn.wordpress.org/trunk@36836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b80a516549
commit
aaa040eee9
|
@ -455,7 +455,7 @@ wp_enqueue_style( 'colors' );
|
||||||
// Check callback name for 'media'
|
// Check callback name for 'media'
|
||||||
if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )
|
if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )
|
||||||
|| ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) )
|
|| ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) )
|
||||||
wp_enqueue_style( 'media' );
|
wp_enqueue_style( 'deprecated-media' );
|
||||||
wp_enqueue_style( 'ie' );
|
wp_enqueue_style( 'ie' );
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -774,7 +774,7 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array( 'dashicons' ) );
|
$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array( 'dashicons' ) );
|
||||||
|
|
||||||
// Deprecated CSS
|
// Deprecated CSS
|
||||||
$styles->add( 'media', "/wp-admin/css/deprecated-media$suffix.css" );
|
$styles->add( 'deprecated-media', "/wp-admin/css/deprecated-media$suffix.css" );
|
||||||
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
|
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
|
||||||
$styles->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop.min.css", array(), '0.9.12' );
|
$styles->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop.min.css", array(), '0.9.12' );
|
||||||
$styles->add( 'colors-fresh', false, array( 'wp-admin', 'buttons' ) ); // Old handle.
|
$styles->add( 'colors-fresh', false, array( 'wp-admin', 'buttons' ) ); // Old handle.
|
||||||
|
@ -789,7 +789,7 @@ function wp_default_styles( &$styles ) {
|
||||||
'buttons', 'admin-bar', 'wp-auth-check', 'editor-buttons', 'media-views', 'wp-pointer',
|
'buttons', 'admin-bar', 'wp-auth-check', 'editor-buttons', 'media-views', 'wp-pointer',
|
||||||
'wp-jquery-ui-dialog',
|
'wp-jquery-ui-dialog',
|
||||||
// deprecated
|
// deprecated
|
||||||
'media', 'farbtastic',
|
'deprecated-media', 'farbtastic',
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ( $rtl_styles as $rtl_style ) {
|
foreach ( $rtl_styles as $rtl_style ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta2-36868';
|
$wp_version = '4.5-beta2-36869';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue