Make WordPress Core


Ignore:
Timestamp:
08/20/2014 09:33:56 PM (12 years ago)
Author:
azaozz
Message:

TinyMCE wpView: add a filter for the stylesheet URLs loaded in the sandbox iframes. See #29048.

File:
1 edited

Legend:

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

    r29543 r29559  
    33093309 * @return array The relevant CSS file URLs.
    33103310 */
    3311 function wp_media_mce_styles() {
     3311function wpview_media_sandbox_styles() {
    33123312        $version = 'ver=' . $GLOBALS['wp_version'];
    33133313        $dashicons = includes_url( "css/dashicons.css?$version" );
    … …  
    33153315        $wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );
    33163316
    3317         return array( $dashicons, $mediaelement, $wpmediaelement );
    3318 }
     3317        /**
     3318         * For use by themes that need to override the styling of MediaElement based previews in the Visual editor.
     3319         * Not intended for adding editor-style.css. Ideally these styles will be applied by using
     3320         * the 'seamless' iframe attribute in the future.
     3321         *
     3322         * @since 4.0
     3323         *
     3324         * @param array The URLs to the stylesheets that will be loaded in the sandbox iframe.
     3325         */
     3326        return apply_filters( 'wpview_media_sandbox_styles', array( $dashicons, $mediaelement, $wpmediaelement ) );
     3327}
Note: See TracChangeset for help on using the changeset viewer.