WordPress.org

Make WordPress Core

Changeset 40659


Ignore:
Timestamp:
05/12/17 20:52:09 (12 days ago)
Author:
adamsilverstein
Message:

Media: Fix improper use of jQuery hasClass method.

The jQuery hasClass method accepts a class name without a prefix '.' (period). Remove an errant class name with a '.' in wp-mediaelement.js that broke the selector in certain circumstances.

Props kostasx, Presskopp.
Fixes #40354.

File:
1 edited

Legend:

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

    r36364 r40659  
    4545                .not( '.mejs-container' ) 
    4646                .filter(function () { 
    47                     return ! $( this ).parent().hasClass( '.mejs-mediaelement' ); 
     47                    return ! $( this ).parent().hasClass( 'mejs-mediaelement' ); 
    4848                }) 
    4949                .mediaelementplayer( settings ); 
Note: See TracChangeset for help on using the changeset viewer.