WordPress.org

Make WordPress Core

Changeset 29564


Ignore:
Timestamp:
08/21/2014 03:35:11 AM (6 years ago)
Author:
wonderboymusic
Message:

After [29543], the iframe sandboxes for media need to load Open Sans. Playlists look aggressively bad without it. Adds font styles for the body.

See #29048.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mediaelement/wp-mediaelement.css

    r29456 r29564  
     1#wpview-iframe-sandbox {
     2    color: #444;
     3    font-family: "Open Sans", sans-serif;
     4    font-size: 13px;
     5    line-height: 1.4em;
     6}
     7
    18.mejs-container {
    29    clear: both;
  • trunk/src/wp-includes/media.php

    r29559 r29564  
    33113311function wpview_media_sandbox_styles() {
    33123312    $version = 'ver=' . $GLOBALS['wp_version'];
     3313    $open_sans = "//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=$version";
    33133314    $dashicons = includes_url( "css/dashicons.css?$version" );
    33143315    $mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" );
     
    33243325     * @param array The URLs to the stylesheets that will be loaded in the sandbox iframe.
    33253326     */
    3326     return apply_filters( 'wpview_media_sandbox_styles', array( $dashicons, $mediaelement, $wpmediaelement ) );
    3327 }
     3327    return apply_filters( 'wpview_media_sandbox_styles', array( $open_sans, $dashicons, $mediaelement, $wpmediaelement ) );
     3328}
Note: See TracChangeset for help on using the changeset viewer.