[wp-trac] [WordPress Trac] #47418: $GLOBALS['wp_scripts']->registered['jquery'] contains "-wp" now

WordPress Trac noreply at wordpress.org
Tue May 28 14:27:18 UTC 2019


#47418: $GLOBALS['wp_scripts']->registered['jquery'] contains "-wp" now
---------------------------+-----------------------------
 Reporter:  glovaci        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  5.2.1
 Severity:  major          |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 the jQuery version now has "-wp" tacked onto the end of it and will break
 uses like pulling a cdn version of jquery. 1.12.4-wp is not a jquery
 version. please prepend that somewhere else.

 wp_enqueue_script('jquery',
 "//code.jquery.com/jquery-{$system_jquery->ver}.min.js", [],
 $system_jquery->ver, true);

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


More information about the wp-trac mailing list