Make WordPress Core


Ignore:
Timestamp:
10/15/2012 02:55:29 PM (12 years ago)
Author:
koopersmith
Message:

Consolidate buttons CSS into a single file.

Adds wp-includes/css/buttons.css to consolidate buttons files and make them available in a modular fashion. Buttons are included automatically with the colors styles, and can be included independently by running:

wp_enqueue_style('buttons');

fixes #22197, see #21598.

File:
1 edited

Legend:

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

    r22228 r22236  
    523523
    524524    // Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
    525     $styles->add( 'colors', true, array('wp-admin') );
     525    $styles->add( 'colors', true, array('wp-admin', 'buttons') );
    526526
    527527    // do not refer to these directly, the right one is queued by the above "meta" colors handle
    528     $styles->add( 'colors-fresh', "/wp-admin/css/colors-fresh$suffix.css", array('wp-admin') );
    529     $styles->add( 'colors-classic', "/wp-admin/css/colors-classic$suffix.css", array('wp-admin') );
     528    $styles->add( 'colors-fresh', "/wp-admin/css/colors-fresh$suffix.css", array('wp-admin', 'buttons') );
     529    $styles->add( 'colors-classic', "/wp-admin/css/colors-classic$suffix.css", array('wp-admin', 'buttons') );
    530530
    531531    $styles->add( 'media', "/wp-admin/css/media$suffix.css" );
     
    542542    $styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie' ) );
    543543    $styles->add( 'media-views', "/wp-includes/css/media-views$suffix.css" );
     544    $styles->add( 'buttons', "/wp-includes/css/buttons$suffix.css" );
    544545
    545546    foreach ( $rtl_styles as $rtl_style ) {
Note: See TracChangeset for help on using the changeset viewer.