Changeset 63983
- Timestamp:
- 09/28/2026 11:22:05 PM (13 hours ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 6 edited
-
Gruntfile.js (modified) (2 diffs)
-
package-lock.json (modified) (2 diffs)
-
package.json (modified) (1 diff)
-
src/js/_enqueues/vendor/jquery/jquery-migrate.js (deleted)
-
src/js/_enqueues/vendor/jquery/jquery-migrate.min.js (deleted)
-
src/wp-includes/script-loader.php (modified) (1 diff)
-
tests/phpunit/tests/dependencies/jquery.php (modified) (1 diff)
-
tests/phpunit/tests/dependencies/scripts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r63919 r63983 371 371 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.js' ]: [ './node_modules/jquery/dist/jquery.js' ], 372 372 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.min.js' ]: [ './node_modules/jquery/dist/jquery.min.js' ], 373 [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.js' ], 374 [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.min.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.min.js' ], 373 375 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.js' ]: [ './node_modules/jquery-form/src/jquery.form.js' ], 374 376 [ WORKING_DIR + 'wp-includes/js/jquery/jquery.color.min.js' ]: [ './node_modules/jquery-color/dist/jquery.color.min.js' ], … … 1604 1606 { 1605 1607 expand: true, 1608 cwd: BUILD_DIR + 'wp-includes/js/jquery', 1609 src: [ 1610 'jquery-migrate.js', 1611 'jquery-migrate.min.js' 1612 ], 1613 dest: BUILD_DIR + 'wp-includes/js/jquery/' 1614 }, 1615 { 1616 expand: true, 1606 1617 cwd: BUILD_DIR + 'wp-includes/js/dist/', 1607 1618 src: [ '*.js' ], -
trunk/package-lock.json
r63784 r63983 26 26 "jquery-form": "4.3.0", 27 27 "jquery-hoverintent": "1.10.2", 28 "jquery-migrate": "3.6.0", 28 29 "jsonlint": "1.6.3", 29 30 "lodash": "4.18.1", … … 20080 20081 } 20081 20082 }, 20083 "node_modules/jquery-migrate": { 20084 "version": "3.6.0", 20085 "resolved": "https://registry.npmjs.org/jquery-migrate/-/jquery-migrate-3.6.0.tgz", 20086 "integrity": "sha512-2k3GMQXXEellCOkj8tczgCd/Y0KMm7LErz4rE6CkHIZV1JTUDlgs7XFN+GpwGKXDQtw/HsjtJuE+CS8IfEOnPg==", 20087 "license": "MIT", 20088 "peerDependencies": { 20089 "jquery": ">=3 <4" 20090 } 20091 }, 20082 20092 "node_modules/js-library-detector": { 20083 20093 "version": "6.7.0", -
trunk/package.json
r63784 r63983 112 112 "jquery-form": "4.3.0", 113 113 "jquery-hoverintent": "1.10.2", 114 "jquery-migrate": "3.6.0", 114 115 "jsonlint": "1.6.3", 115 116 "lodash": "4.18.1", -
trunk/src/wp-includes/script-loader.php
r63620 r63983 907 907 $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '3.7.1' ); 908 908 $scripts->add( 'jquery-core', "/wp-includes/js/jquery/jquery$suffix.js", array(), '3.7.1' ); 909 $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '3. 4.1' );909 $scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '3.6.0' ); 910 910 911 911 /* -
trunk/tests/phpunit/tests/dependencies/jquery.php
r55565 r63983 38 38 $this->assertSame( $jquery_scripts[ $dep ], $o->src ); 39 39 } 40 } 41 42 /** 43 * Ensure the required jQuery files exist on the file system. 44 * 45 * @ticket 60478 46 * 47 * @dataProvider data_jquery_files_exist 48 * 49 * @param non-falsy-string $file_name The file name the should exist. 50 */ 51 public function test_jquery_files_exist( string $file_name ) { 52 $this->assertFileExists( ABSPATH . "/wp-includes/js/jquery/{$file_name}" ); 53 } 54 55 /** 56 * Data provider for {@see self::test_jquery_files_exist()}. 57 * 58 * @return array<non-falsy-string, array{ 0: non-falsy-string }> 59 */ 60 public function data_jquery_files_exist(): array { 61 return array( 62 'jquery' => array( 'jquery.js' ), 63 'jquery-min' => array( 'jquery.min.js' ), 64 'jquery-migrate' => array( 'jquery-migrate.js' ), 65 'jquery-migrate-min' => array( 'jquery-migrate.min.js' ), 66 ); 40 67 } 41 68 -
trunk/tests/phpunit/tests/dependencies/scripts.php
r63936 r63983 4173 4173 * @ticket 61855 4174 4174 * @ticket 60048 4175 * @ticket 60478 4175 4176 * 4176 4177 * @covers ::wp_default_scripts … … 4234 4235 'jquery-form' => array( 'jquery-form' ), 4235 4236 'jquery-hoverintent' => array( 'jquery-hoverintent', 'hoverIntent' ), 4237 'jquery-migrate' => array( 'jquery-migrate' ), 4236 4238 'htmlhint' => array( 'htmlhint' ), 4237 4239 'jsonlint' => array( 'jsonlint' ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)