#58571 closed defect (bug) (invalid)
jquery-migrate.min.js is different to jquery-migrate.js
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | |
Component: | Script Loader | Keywords: | |
Focuses: | javascript | Cc: |
Description
It looks like the minified version of jquery-migrate.js
in /wp-includes/js/jquery/
differs from the un-minified version in that console.warn()
is not shown in the minified version!
This means that multiple console warnings are being missed because the minified version is loaded by default.
Please see this thread for more information https://wordpress.org/support/topic/jquery-core-and-migrate/
Thanks,
Oliver
Change History (2)
#2
@
22 months ago
- Milestone Awaiting Review deleted
Thanks for the follow-up!
Just noting that jQuery Migrate was recently updated to 3.4.1 in [55900] / #58451.
I was able to confirm that the jquery-migrate.js
and jquery-migrate.min.js
files shipped with WordPress core are both an exact match of the ones published on jQuery CDN.
Looking at Development vs. Production versions, it appears that the minified build indeed has debugging disabled, and does not generate console warnings.
Sorry, looks like this is the expected behaviour of the minified version to be "muted". Apologies.