Make WordPress Core

Changeset 28246


Ignore:
Timestamp:
05/02/2014 04:59:47 PM (8 years ago)
Author:
nacin
Message:

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.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/src/wp-includes/js/mediaelement/wp-playlist.js

    r28150 r28246  
    7070
    7171        renderCurrent : function () {
    72             var dimensions;
     72            var dimensions, defaultImage = 'wp-includes/images/media/video.png';
    7373            if ( 'video' === this.data.type ) {
    74                 if ( this.data.images && this.current.get( 'image' ) ) {
     74                if ( this.data.images && this.current.get( 'image' ) && -1 === this.current.get( 'image' ).src.indexOf( defaultImage ) ) {
    7575                    this.playerNode.attr( 'poster', this.current.get( 'image' ).src );
    7676                }
Note: See TracChangeset for help on using the changeset viewer.