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

WordPress Trac noreply at wordpress.org
Tue Nov 12 18:52:33 UTC 2019


#48568: $ not defined on edit screen anymore
---------------------------+---------------------
 Reporter:  david.binda    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.3.1
Component:  Script Loader  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+---------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 The "best practice" in WP has always been to not make `$` an instance of
 jQuery. That's been around since jQuery was introduced 13 years ago in
 WordPress 2.2! The fact that Mediaelement was "leaking" it was a bug
 upstream that is now fixed.

 Thinking we shouldn't be reverting that bugfix upstream. That "leak" was
 very inconsistent. It seems to have affected mostly the old Edit Post
 screen and scripts that are "doing-it-wrong".

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


More information about the wp-trac mailing list