Changeset 27311 for trunk/src/wp-includes/media.php
- Timestamp:
- 02/27/2014 03:19:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r27302 r27311 1014 1014 } 1015 1015 1016 if ( ! in_array( $style, array( 'light', 'dark' ), true ) ) { 1017 $style = 'light'; 1018 } 1019 1016 1020 $args = array( 1017 1021 'post_status' => 'inherit', … … 1114 1118 $data['tracks'] = $tracks; 1115 1119 1120 $safe_type = esc_attr( $safe_type ); 1121 $safe_style = esc_attr( $style ); 1122 1116 1123 ob_start(); 1117 1124 … … 1120 1127 wp_enqueue_script( 'wp-playlist' ); 1121 1128 ?> 1122 <!--[if lt IE 9]><script>document.createElement('<?php echo $type?>');</script><![endif]-->1129 <!--[if lt IE 9]><script>document.createElement('<?php echo esc_js( $type ) ?>');</script><![endif]--> 1123 1130 <script type="text/html" id="tmpl-wp-playlist-current-item"> 1124 1131 <# if ( data.image ) { #> … … 1155 1162 </script> 1156 1163 <?php endif ?> 1157 <div class="wp-playlist wp-<?php echo $ type ?>-playlist wp-playlist-<?php echo $style ?>">1164 <div class="wp-playlist wp-<?php echo $safe_type ?>-playlist wp-playlist-<?php echo $safe_style ?>"> 1158 1165 <?php if ( 'audio' === $type ): ?> 1159 1166 <div class="wp-playlist-current-item"></div> 1160 1167 <?php endif ?> 1161 <<?php echo $ type ?> controls="controls" preload="metadata" width="<?php echo $theme_width ?>"></<?php echo $type ?>>1168 <<?php echo $safe_type ?> controls="controls" preload="metadata" width="<?php echo (int) $theme_width ?>"></<?php echo $safe_type ?>> 1162 1169 <div class="wp-playlist-next"></div> 1163 1170 <div class="wp-playlist-prev"></div>
Note: See TracChangeset
for help on using the changeset viewer.