Make WordPress Core

Changeset 28158 for trunk


Ignore:
Timestamp:
04/18/2014 05:38:53 PM (11 years ago)
Author:
wonderboymusic
Message:

Don't set the poster image for videos in a playlist if the image is the video mime-type icon blown up.

See #27892.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mediaelement/wp-playlist.js

    r28150 r28158  
    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.