[wp-trac] [WordPress Trac] #48568: $ not defied on edit screen anymore

WordPress Trac noreply at wordpress.org
Tue Nov 12 14:30:08 UTC 2019


#48568: $ not defied on edit screen anymore
--------------------------+-----------------------------
 Reporter:  david.binda   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 While the no-conflict mode of jQuery has been a standard for a while
 already, the mediaelement script has been leaking jQuery to `$` variable,
 so prior 5.3, the plugin authors (eg.: for tinyMCE plugins) were able to
 use `$` w/o penalties.

 However, with the upgrade of mediaelement, this has changed, and jQuery is
 no longer available via `$` in window.

 How to test:

 In 5.2: open a new post screen and type `$` in console. It should be
 defined. In 5.3 it is not.

 It's likely due to the change in
 https://build.trac.wordpress.org/changeset/46234/trunk/wp-
 includes/js/mediaelement/mediaelement-and-player.js at line 5778.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48568>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list