Make WordPress Core


Ignore:
Timestamp:
11/10/2013 12:26:50 AM (11 years ago)
Author:
helen
Message:

Say hello to a fresh new look for the WordPress admin.

Still to come: more color schemes, a responsive component, and more.

see #25858.
props iammattthomas, tillkruess, EmpireOfLight, melchoyce, ryelle, joen, mitchoyoshitaka, sirbrillig, andypeatling, isaackeyet, Otto42, dd32, matt, helen.

File:
1 edited

Legend:

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

    r25949 r26072  
    394394    $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 );
    395395
     396    $scripts->add( 'svg-painter', '/wp-includes/js/svg-painter.js' );
     397
    396398    if ( is_admin() ) {
    397399        $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('jquery', 'wp-ajax-response'), false, 1 );
     
    554556    $no_suffix = array( 'farbtastic' );
    555557
    556     $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css" );
     558    $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array( 'open-sans', 'dashicons' ) );
    557559
    558560    $styles->add( 'ie', "/wp-admin/css/ie$suffix.css" );
    559561    $styles->add_data( 'ie', 'conditional', 'lte IE 7' );
    560562
     563    // Hotlink Open Sans, for now
     564    $styles->add( 'open-sans', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin-ext,latin' );
     565
     566    // Dashicons
     567    $styles->add( 'dashicons', '/wp-includes/css/dashicons.css' );
     568
    561569    // Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
    562     $styles->add( 'colors', true, array('wp-admin', 'buttons') );
     570    $styles->add( 'colors', true, array( 'wp-admin', 'buttons', 'open-sans', 'dashicons' ) );
    563571
    564572    // do not refer to these directly, the right one is queued by the above "meta" colors handle
    565     $styles->add( 'colors-fresh', "/wp-admin/css/colors-fresh$suffix.css", array('wp-admin', 'buttons') );
    566     $styles->add( 'colors-classic', "/wp-admin/css/colors-classic$suffix.css", array('wp-admin', 'buttons') );
     573    $styles->add( 'colors-fresh', "/wp-admin/css/colors-fresh$suffix.css", array( 'wp-admin', 'buttons' ) );
    567574
    568575    $styles->add( 'media', "/wp-admin/css/media$suffix.css" );
     
    573580    $styles->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop.min.css", array(), '0.9.12' );
    574581    $styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.8' );
    575     $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css" );
     582    $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array( 'open-sans', 'dashicons' ) );
    576583    $styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css" );
    577584    $styles->add( 'editor-buttons', "/wp-includes/css/editor$suffix.css" );
Note: See TracChangeset for help on using the changeset viewer.