Changeset 29559
- Timestamp:
- 08/20/2014 09:33:56 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
wp-admin/includes/ajax-actions.php (modified) (2 diffs)
-
wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r29546 r29559 2678 2678 if ( has_shortcode( $parsed, 'audio' ) || has_shortcode( $parsed, 'video' ) ) { 2679 2679 $styles = ''; 2680 $mce_styles = wp _media_mce_styles();2680 $mce_styles = wpview_media_sandbox_styles(); 2681 2681 foreach ( $mce_styles as $style ) { 2682 2682 $styles .= sprintf( '<link rel="stylesheet" href="%s"/>', $style ); … … 2729 2729 ob_start(); 2730 2730 2731 $styles = wp _media_mce_styles();2731 $styles = wpview_media_sandbox_styles(); 2732 2732 foreach ( $styles as $style ) { 2733 2733 printf( '<link rel="stylesheet" href="%s"/>', $style ); -
trunk/src/wp-includes/media.php
r29543 r29559 3309 3309 * @return array The relevant CSS file URLs. 3310 3310 */ 3311 function wp _media_mce_styles() {3311 function wpview_media_sandbox_styles() { 3312 3312 $version = 'ver=' . $GLOBALS['wp_version']; 3313 3313 $dashicons = includes_url( "css/dashicons.css?$version" ); … … 3315 3315 $wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" ); 3316 3316 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.