Make WordPress Core

Changeset 36869


Ignore:
Timestamp:
03/06/2016 03:37:25 PM (9 years ago)
Author:
afercia
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r36232 r36869  
    456456if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )
    457457    || ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) )
    458     wp_enqueue_style( 'media' );
     458    wp_enqueue_style( 'deprecated-media' );
    459459wp_enqueue_style( 'ie' );
    460460?>
  • trunk/src/wp-includes/script-loader.php

    r36806 r36869  
    775775
    776776    // Deprecated CSS
    777     $styles->add( 'media',      "/wp-admin/css/deprecated-media$suffix.css" );
    778     $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
    779     $styles->add( 'jcrop',      "/wp-includes/js/jcrop/jquery.Jcrop.min.css", array(), '0.9.12' );
     777    $styles->add( 'deprecated-media', "/wp-admin/css/deprecated-media$suffix.css" );
     778    $styles->add( 'farbtastic',       '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
     779    $styles->add( 'jcrop',            "/wp-includes/js/jcrop/jquery.Jcrop.min.css", array(), '0.9.12' );
    780780    $styles->add( 'colors-fresh', false, array( 'wp-admin', 'buttons' ) ); // Old handle.
    781781
     
    790790        'wp-jquery-ui-dialog',
    791791        // deprecated
    792         'media', 'farbtastic',
     792        'deprecated-media', 'farbtastic',
    793793    );
    794794
Note: See TracChangeset for help on using the changeset viewer.