Don't set the poster image for videos in a playlist if the image is the video mime-type icon blown up.
Merges [28158] to the 3.9 branch. props wonderboymusic. see #27892. Built from https://develop.svn.wordpress.org/branches/3.9@28246 git-svn-id: http://core.svn.wordpress.org/branches/3.9@28074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9753a18ddf
commit
daddadfb70
|
@ -69,9 +69,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
renderCurrent : function () {
|
renderCurrent : function () {
|
||||||
var dimensions;
|
var dimensions, defaultImage = 'wp-includes/images/media/video.png';
|
||||||
if ( 'video' === this.data.type ) {
|
if ( 'video' === this.data.type ) {
|
||||||
if ( this.data.images && this.current.get( 'image' ) ) {
|
if ( this.data.images && this.current.get( 'image' ) && -1 === this.current.get( 'image' ).src.indexOf( defaultImage ) ) {
|
||||||
this.playerNode.attr( 'poster', this.current.get( 'image' ).src );
|
this.playerNode.attr( 'poster', this.current.get( 'image' ).src );
|
||||||
}
|
}
|
||||||
dimensions = this.current.get( 'dimensions' ).resized;
|
dimensions = this.current.get( 'dimensions' ).resized;
|
||||||
|
|
Loading…
Reference in New Issue