WordPress.org

Make WordPress Core

Ticket #28478: 28478.diff

File 28478.diff, 4.2 KB (added by norcross, 7 years ago)

removes the open sans dependencies and enqueues separately

  • wp-admin/admin-header.php

     
    5050<title><?php echo $admin_title; ?></title>
    5151<?php
    5252
     53wp_enqueue_style( 'open-sans' );
    5354wp_enqueue_style( 'colors' );
    5455wp_enqueue_style( 'ie' );
    5556wp_enqueue_script('utils');
  • wp-admin/includes/media.php

     
    423423<title><?php bloginfo('name') ?> &rsaquo; <?php _e('Uploads'); ?> &#8212; <?php _e('WordPress'); ?></title>
    424424<?php
    425425
     426wp_enqueue_style( 'open-sans' );
    426427wp_enqueue_style( 'colors' );
    427428// Check callback name for 'media'
    428429if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )
  • wp-admin/includes/template.php

     
    15071507?>
    15081508<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title ?> &#8212; <?php _e('WordPress'); ?></title>
    15091509<?php
     1510wp_enqueue_style( 'open-sans' );
    15101511wp_enqueue_style( 'colors' );
    15111512?>
    15121513<script type="text/javascript">
  • wp-admin/press-this.php

     
    290290}
    291291die;
    292292}
    293 
     293        wp_enqueue_style( 'open-sans' );
    294294        wp_enqueue_style( 'colors' );
    295295        wp_enqueue_script( 'post' );
    296296        add_thickbox();
  • wp-includes/class-wp-admin-bar.php

     
    5959                add_action('wp_head', $header_callback);
    6060
    6161                wp_enqueue_script( 'admin-bar' );
     62                wp_enqueue_style( 'open-sans' );
    6263                wp_enqueue_style( 'admin-bar' );
    6364
    6465                /**
  • wp-includes/script-loader.php

     
    597597        }
    598598
    599599        // Register a stylesheet for the selected admin color scheme.
    600         $styles->add( 'colors', true, array( 'wp-admin', 'buttons', 'open-sans', 'dashicons' ) );
     600        $styles->add( 'colors', true, array( 'wp-admin', 'buttons', 'dashicons' ) );
    601601
    602602        $suffix = SCRIPT_DEBUG ? '' : '.min';
    603603
    604604        // Admin CSS
    605         $styles->add( 'wp-admin',           "/wp-admin/css/wp-admin$suffix.css", array( 'open-sans', 'dashicons' ) );
    606         $styles->add( 'login',              "/wp-admin/css/login$suffix.css", array( 'buttons', 'open-sans', 'dashicons' ) );
    607         $styles->add( 'install',            "/wp-admin/css/install$suffix.css", array( 'buttons', 'open-sans' ) );
     605        $styles->add( 'wp-admin',           "/wp-admin/css/wp-admin$suffix.css", array( 'dashicons' ) );
     606        $styles->add( 'login',              "/wp-admin/css/login$suffix.css", array( 'buttons', 'dashicons' ) );
     607        $styles->add( 'install',            "/wp-admin/css/install$suffix.css", array( 'buttons' ) );
    608608        $styles->add( 'wp-color-picker',    "/wp-admin/css/color-picker$suffix.css" );
    609609        $styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie', 'imgareaselect' ) );
    610610        $styles->add( 'customize-widgets',  "/wp-admin/css/customize-widgets$suffix.css", array( 'wp-admin', 'colors' ) );
     
    618618        $styles->add( 'open-sans', $open_sans_font_url );
    619619
    620620        // Includes CSS
    621         $styles->add( 'admin-bar',      "/wp-includes/css/admin-bar$suffix.css", array( 'open-sans', 'dashicons' ) );
     621        $styles->add( 'admin-bar',      "/wp-includes/css/admin-bar$suffix.css", array( 'dashicons' ) );
    622622        $styles->add( 'wp-auth-check',  "/wp-includes/css/wp-auth-check$suffix.css", array( 'dashicons' ) );
    623623        $styles->add( 'editor-buttons', "/wp-includes/css/editor$suffix.css", array( 'dashicons' ) );
    624624        $styles->add( 'media-views',    "/wp-includes/css/media-views$suffix.css", array( 'buttons', 'dashicons', 'wp-mediaelement' ) );