mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@27659 git-svn-id: http://core.svn.wordpress.org/trunk@27502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
86f4061b26
commit
16f93f3952
@ -189,6 +189,10 @@
|
||||
shortcode = {};
|
||||
|
||||
if ( 'video' === type ) {
|
||||
if ( attachment.image ) {
|
||||
shortcode.poster = attachment.image.src;
|
||||
}
|
||||
|
||||
if ( attachment.width ) {
|
||||
shortcode.width = attachment.width;
|
||||
}
|
||||
|
2
wp-includes/js/media-editor.min.js
vendored
2
wp-includes/js/media-editor.min.js
vendored
File diff suppressed because one or more lines are too long
@ -295,6 +295,7 @@ audio {
|
||||
border-color: rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.wpview-type-video .track-details,
|
||||
.wpview-type-audio .track-details {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user