[wp-trac] [WordPress Trac] #47342: Get version of WordPress's jQuery

WordPress Trac noreply at wordpress.org
Wed May 22 15:28:54 UTC 2019


#47342: Get version of WordPress's jQuery
---------------------------+------------------------------
 Reporter:  mizzinc        |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Script Loader  |     Version:  5.2.1
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+------------------------------
Changes (by desrosj):

 * keywords:   => close


Comment:

 It's worth noting that the `wp-includes/js/jquery/jquery.js` file is an
 already minified version of the library.

 This is also a unique situation because WordPress is stuck on jQuery
 1.12.4 (which is unmaintained by the jQuery team) until all compatibility
 issues are addressed in #37110. There may be a slight sacrifice of
 performance, but the version bundled with WordPress is more secure.

 I agree with @azaozz that this is definitely a non-standard way to use the
 version property of a script. If this usage was encouraged, there would be
 a `wp_get_enqueued_script_version()` or something similar to retrieve the
 version.

 Marking as a `close` candidate, but leaving open for others to weigh in.

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


More information about the wp-trac mailing list