Make WordPress Core

Changeset 27659


Ignore:
Timestamp:
03/23/2014 03:35:50 AM (13 years ago)
Author:
wonderboymusic
Message:

When inserting a video shortcode into the editor, set the poster attribute automatically if the video has a featured image attached to it.

See #27460.

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

Legend:

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

    r27640 r27659  
    190190
    191191                        if ( 'video' === type ) {
     192                                if ( attachment.image ) {
     193                                        shortcode.poster = attachment.image.src;
     194                                }
     195
    192196                                if ( attachment.width ) {
    193197                                        shortcode.width = attachment.width;
  • trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css

    r27655 r27659  
    296296}
    297297
     298.wpview-type-video .track-details,
    298299.wpview-type-audio .track-details {
    299300        position: absolute;
Note: See TracChangeset for help on using the changeset viewer.