Changeset 27979
- Timestamp:
- 04/07/2014 06:12:06 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-audiovideo.js
r27788 r27979 205 205 autoplay : false, 206 206 preload : 'none', 207 caption : '',208 207 width : 400 209 208 }, … … 260 259 preload : 'metadata', 261 260 content : '', 262 caption : '',263 261 width : 640, 264 262 height : 360 -
trunk/src/wp-includes/js/media-editor.js
r27785 r27979 203 203 } 204 204 205 if ( ! _.isEmpty( attachment.caption ) ) {206 shortcode.caption = attachment.caption;207 } else if ( attachment.meta && attachment.meta.title ) {208 shortcode.caption = '“' + attachment.meta.title + '”';209 if ( attachment.meta.album ) {210 shortcode.caption += ' from ' + attachment.meta.album;211 }212 213 if ( attachment.meta.artist ) {214 shortcode.caption += ' by ' + attachment.meta.artist;215 }216 } else if ( ! _.isEmpty( attachment.description ) ) {217 shortcode.caption = attachment.description;218 } else {219 shortcode.caption = attachment.title;220 }221 222 205 extension = attachment.filename.split('.').pop(); 223 206 -
trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
r27949 r27979 298 298 } 299 299 300 .wpview-type-video .track-details,301 .wpview-type-audio .track-details {302 position: absolute;303 top: 0;304 left: 5px;305 width: 85%;306 overflow: hidden;307 white-space: nowrap;308 text-overflow: ellipsis;309 }310 311 300 .wpview-type-gallery:after { 312 301 content: ''; -
trunk/src/wp-includes/media-template.php
r27946 r27979 852 852 <input type="checkbox" data-setting="loop" /> 853 853 </label> 854 855 <label class="setting">856 <span><?php _e( 'Caption' ); ?></span>857 <input type="text" data-setting="caption" value="{{ data.model.caption }}" />858 </label>859 860 854 <div class="clear"></div> 861 855 </div> … … 968 962 <# } #> 969 963 <textarea class="hidden content-setting">{{ content }}</textarea> 970 </label>971 972 <label class="setting">973 <span><?php _e( 'Caption' ); ?></span>974 <input type="text" data-setting="caption" value="{{ data.model.caption }}" />975 964 </label> 976 965 </div> … … 1010 999 <div class="dashicons dashicons-no-alt remove"></div> 1011 1000 </div> 1012 <# if ( ! _.isEmpty( data.model.caption ) ) { #>1013 <div class="track-details">{{ data.model.caption }}</div>1014 <# } #>1015 1001 <?php wp_underscore_audio_template() ?> 1016 1002 <div class="wpview-overlay"></div> … … 1022 1008 <div class="dashicons dashicons-no-alt remove"></div> 1023 1009 </div> 1024 <# if ( ! _.isEmpty( data.model.caption ) ) { #>1025 <div class="track-details">{{ data.model.caption }}</div>1026 <# } #>1027 1010 <?php wp_underscore_video_template() ?> 1028 1011 <div class="wpview-overlay"></div> -
trunk/src/wp-includes/media.php
r27974 r27979 1393 1393 $default_types = wp_get_audio_extensions(); 1394 1394 $defaults_atts = array( 1395 'caption' => '',1396 1395 'src' => '', 1397 1396 'loop' => '', … … 1553 1552 $default_types = wp_get_video_extensions(); 1554 1553 $defaults_atts = array( 1555 'caption' => '',1556 1554 'src' => '', 1557 1555 'poster' => '',
Note: See TracChangeset
for help on using the changeset viewer.