[wp-trac] [WordPress Trac] #47342: Get version of WordPress's jQuery
WordPress Trac
noreply at wordpress.org
Wed May 22 19:15:38 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:
---------------------------+------------------------------
Comment (by azaozz):
Was looking at what can be done in core to "remedy" the improper use of
the version strings, but it's a tough call. We can't just remove the `-wp`
there, need to change the version string to bust caches. But whatever we
change it to it will still be an invalid version...
Ideally plugins that replace the local copy of jQuery will be updated to
not replace it, and use the patched version distributed with WP.
Also found this plugin https://wordpress.org/plugins/use-google-libraries/
(which is unfortunately outdated/seems unsupported) that "does it right".
See https://plugins.trac.wordpress.org/browser/use-google-
libraries/tags/1.6.2.2/use-google-libraries.php#L354.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47342#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list