[wp-trac] [WordPress Trac] #40354: Improper use of jQuery hasClass method

WordPress Trac noreply at wordpress.org
Fri May 12 20:52:11 UTC 2017


#40354: Improper use of jQuery hasClass method
--------------------------------------+------------------------------
 Reporter:  kostasx                   |       Owner:  adamsilverstein
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.8
Component:  Media                     |     Version:  4.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  javascript
--------------------------------------+------------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40659"]:
 {{{
 #!CommitTicketReference repository="" revision="40659"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40354#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list