Make WordPress Core

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: kbapat's profile kbapat 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)

WordPress_JqueryMigrate.png (89.2 KB) - added by kbapat 16 months ago.
62498.patch (33.6 KB) - added by karthickmurugan 16 months ago.
Patch file for updating the jquery-migrate.js and jquery-migrate.min.js to the latest version.

Download all attachments as: .zip

Change History (6)

#1 @kbapat
16 months ago

  • Severity changed from normal to major

#2 @vishalmori
16 months ago

  • Component changed from Script Loader to External Libraries
  • Type changed from defect (bug) to enhancement

@karthickmurugan
16 months ago

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

#3 @karthickmurugan
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 @ozgursar
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

  1. 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');
  1. Visit homepage and check loaded assets via Chrome Dev Tools
  2. Before applying patch jquery-migrate version 3.4.1 is loaded
  3. After applying patch jquery-migrate version 3.5.2 is loaded
  4. ✅ 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

Screenshots/Screencast with results

Before:
https://i.imgur.com/F4Txosv.png

After:
https://i.imgur.com/YvBHBje.png

Last edited 7 weeks ago by ozgursar (previous) (diff)
Note: See TracTickets for help on using tickets.