Opened 16 months ago
Last modified 7 weeks ago
#62498 new enhancement
Jquery migrate not up to date with latest version of WordPress 6.7
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | major | Version: | |
| Component: | External Libraries | Keywords: | has-screenshots has-patch reporter-feedback dev-feedback |
| Focuses: | Cc: |
Description
Immuniweb scanner has highlighted that jquery migrate is not up to date for wordpress website.
We have updated WordPress to latest version 6.7 but still Jquery migrate is on 3.4.1
Latest version of Jquery migrate 3.5.2
Developer tools screenshot is attached.
Request to update to latest version
As per the comment mentioned in old post submitting request here
https://wordpress.org/support/topic/cms-outdated-on-live-site-but-not-on-stage/
Attachments (2)
Change History (6)
#2
@
16 months ago
- Component changed from Script Loader to External Libraries
- Type changed from defect (bug) to enhancement
#3
@
16 months ago
- Keywords has-patch needs-testing added; needs-patch removed
Hello.,
I have updated the issue by creating a patch by updating the jquery-migrate.js and jquery-migrate.min.js to the latest version 3.5.2
#4
@
7 weeks ago
- Keywords reporter-feedback dev-feedback added; needs-testing removed
Patch Testing Report
Patch Tested: https://core.trac.wordpress.org/attachment/ticket/62498/62498.patch
Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 144.0.0.0 (Mobile)
- OS: Android
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Code Snippets 3.9.4
- Test Reports 1.2.1
Steps taken
- Add the following code via Code Snippets or functions.php to load the
jquery
function test_jquery_migrate() {
wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scripts', 'test_jquery_migrate');
- Visit homepage and check loaded assets via Chrome Dev Tools
- Before applying patch jquery-migrate version 3.4.1 is loaded
- After applying patch jquery-migrate version 3.5.2 is loaded
- ✅ Patch is solving the problem
Expected result
- Newer version of jquery is expected to load.
Additional Notes
- According to the Github repo of jquery-migrate, latest production version is 4.0.2
https://github.com/jquery/jquery-migrate
- Dev feedback is needed


Patch file for updating the jquery-migrate.js and jquery-migrate.min.js to the latest version.