Changeset 44239 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 12/16/2018 10:23:34 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43878
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/script-loader.php
r44238 r44239 320 320 'i18n' => array( 'wp-polyfill' ), 321 321 'is-shallow-equal' => array( 'wp-polyfill' ), 322 'keycodes' => array( 'lodash', 'wp-polyfill' ),322 'keycodes' => array( 'lodash', 'wp-polyfill', 'wp-i18n' ), 323 323 'list-reusable-blocks' => array( 324 324 'lodash', … … 362 362 ); 363 363 364 $package_translations = array( 365 'api-fetch' => 'default', 366 'blocks' => 'default', 367 'block-library' => 'default', 368 'components' => 'default', 369 'edit-post' => 'default', 370 'editor' => 'default', 371 'format-library' => 'default', 372 'keycodes' => 'default', 373 'list-reusable-blocks' => 'default', 374 'nux' => 'default', 375 ); 376 364 377 foreach ( $packages_dependencies as $package => $dependencies ) { 365 378 $handle = 'wp-' . $package; … … 367 380 368 381 $scripts->add( $handle, $path, $dependencies, false, 1 ); 382 383 if ( isset( $package_translations[ $package ] ) ) { 384 $scripts->set_translations( $handle, $package_translations[ $package ] ); 385 } 369 386 } 370 387 }
Note: See TracChangeset
for help on using the changeset viewer.