Make WordPress Core

Opened 14 months ago

Last modified 2 weeks ago

#62757 new enhancement

Update jQuery UI library to version 1.14.1

Reported by: pankajsakaria's profile pankaj.sakaria Owned by:
Milestone: 7.1 Priority: normal
Severity: normal Version:
Component: External Libraries Keywords: has-patch dev-feedback
Focuses: javascript Cc:

Description

An update is available for the jQuery UI library. Core currently bundles 1.14.1.
Changelog: https://blog.jqueryui.com/2024/10/jquery-ui-1-14-1-released/

Change History (13)

This ticket was mentioned in PR #8065 on WordPress/wordpress-develop by pankajsakariya23.


14 months ago
#1

  • Keywords has-patch added; needs-patch removed

Updates jQuery UI to the latest version v1.14.1

#2 @pankaj.sakaria
14 months ago

  • Type changed from defect (bug) to enhancement

#3 @pankaj.sakaria
14 months ago

Hi @desrosj I think your input could be helpful on this ticket.

#4 @OllieJones
12 months ago

Infosec penetration tests are starting to flag and fail sites with the old 1.13 jQuery. For example.

https://stackoverflow.com/questions/79480560/penetration-test-fails-for-wordpress-6-7-2-as-jquery-ui-1-13-3-reached-eol

Maybe time to bite the bullet and move forward?

Version 0, edited 12 months ago by OllieJones (next)

#5 @johnbillion
10 months ago

  • Version trunk deleted

#6 @mgol
3 months ago

I'd recommend keeping jQuery UI up to date. I see WordPress is still on 1.13.x and the 1.14.x line is already 1.5 years old. There were very few breaking changes in 1.14.0: https://blog.jqueryui.com/2024/08/jquery-ui-1-14-0-released/. cc @azaozz

#7 @mgol
3 months ago

Upgrade guide is at https://jqueryui.com/upgrade-guide/1.14/. I expect the update to be quite easy.

#8 @jorbin
3 months ago

  • Milestone changed from Awaiting Review to 7.0

@mukesh27 commented on PR #8065:


4 weeks ago
#9

@pankajsakariya23 Can you please update PR that update the latest version https://blog.jqueryui.com/2026/01/jquery-ui-1-14-2-released/?

#10 @mukesh27
4 weeks ago

  • Keywords needs-testing changes-requested added

#11 @ozgursar
3 weeks ago

  • Keywords dev-feedback added; needs-testing changes-requested removed

Patch Testing Report

Patch Tested: https://github.com/WordPress/wordpress-develop/pull/10893

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: Opera
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Code Snippets 3.9.5
    • Test Reports 1.2.1

Steps taken

  1. Add the plugin provided in the Support Content section that has wp_enqueue_script('jquery-ui-core'); and displays its version in the bottom right of the screen.
  2. Visit any page and confirm the enqueued core.js version
  3. ✅ Patch is solving the problem

Expected result

  • After applying the patch, enqueued jQuery UI library switches to version 1.14.2

Screenshots/Screencast with results

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

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

Support Content

  • Testing plugin below is created using Claude.ai tool
/**
 * Plugin Name: jQuery UI Version Checker
 * Description: Display enqueued jQuery UI version in admin and frontend
 */

add_action('wp_enqueue_scripts', 'check_jquery_ui_version', 999);
add_action('admin_enqueue_scripts', 'check_jquery_ui_version', 999);

function check_jquery_ui_version() {
    global $wp_scripts;
    
    // Force enqueue jQuery UI Core to check version
    wp_enqueue_script('jquery-ui-core');
    
    // Display version info
    if (isset($wp_scripts->registered['jquery-ui-core'])) {
        $version = $wp_scripts->registered['jquery-ui-core']->ver;
        
        echo '<div style="position:fixed;bottom:20px;right:20px;background:#f00;color:#fff;padding:10px;z-index:99999;border-radius:5px;">';
        echo '<strong>jQuery UI Version:</strong> ' . esc_html($version);
        echo '</div>';
    }
}

// Also log to console
add_action('wp_footer', 'log_jquery_ui_to_console', 999);
add_action('admin_footer', 'log_jquery_ui_to_console', 999);

function log_jquery_ui_to_console() {
    ?>
    <script>
    if (typeof jQuery !== 'undefined' && typeof jQuery.ui !== 'undefined') {
        console.log('jQuery UI Version:', jQuery.ui.version);
    }
    </script>
    <?php
}

#12 @siliconforks
3 weeks ago

Note that PR #10893 is (pretty obviously) seriously flawed - I wouldn't waste time testing it.

#13 @audrasjb
2 weeks ago

  • Milestone changed from 7.0 to 7.1

WP 7.0 pre-beta1 Triage:
Unfortunately this enhancement didn't make it before beta 1 code freeze. Thus, let's move it to milestone 7.1.

Note: See TracTickets for help on using tickets.