[wp-trac] [WordPress Trac] #47342: Get version of WordPress's jQuery
WordPress Trac
noreply at wordpress.org
Wed May 22 04:08:44 UTC 2019
#47342: Get version of WordPress's jQuery
--------------------------+------------------------------
Reporter: mizzinc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by azaozz):
The version string change is from #47020. The version you load from
ajax.googleapis.com is the old, unpached jQuery version.
Looking at `$ver = $GLOBALS['wp_scripts']->registered['jquery']->ver;`,
frankly I don't think this is a "proper way" to use the script loader in
WP. The version strings there are intended to refresh caching when the
files have changed, nothing more. There are several "improper" or non-
standard version strings in there. If you have to load from an external
source, please use the full URL. However in this case that will load the
unpatched version.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47342#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list