mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Only set the poster
attribute automatically for videos when the image does not match the default mime-type icon. wp_prepare_attachment_for_js()
is used in multiple contexts. This context requires disambiguation.
See [27659]. Built from https://develop.svn.wordpress.org/trunk@27980 git-svn-id: http://core.svn.wordpress.org/trunk@27810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c88f6e941
commit
10b80870ee
@ -189,7 +189,7 @@
|
||||
shortcode = {};
|
||||
|
||||
if ( 'video' === type ) {
|
||||
if ( attachment.image ) {
|
||||
if ( attachment.image && -1 === attachment.image.src.indexOf( attachment.icon ) ) {
|
||||
shortcode.poster = attachment.image.src;
|
||||
}
|
||||
|
||||
|
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
Loading…
Reference in New Issue
Block a user