Changeset 43878 for branches/5.0/src/wp-includes/script-loader.php
- Timestamp:
- 11/08/2018 11:33:46 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/script-loader.php
r43877 r43878 321 321 'i18n' => array( 'wp-polyfill' ), 322 322 'is-shallow-equal' => array( 'wp-polyfill' ), 323 'keycodes' => array( 'lodash', 'wp-polyfill' ),323 'keycodes' => array( 'lodash', 'wp-polyfill', 'wp-i18n' ), 324 324 'list-reusable-blocks' => array( 325 325 'lodash', … … 364 364 ); 365 365 366 $package_translations = array( 367 'api-fetch' => 'default', 368 'blocks' => 'default', 369 'block-library' => 'default', 370 'components' => 'default', 371 'edit-post' => 'default', 372 'editor' => 'default', 373 'format-library' => 'default', 374 'keycodes' => 'default', 375 'list-reusable-blocks' => 'default', 376 'nux' => 'default', 377 ); 378 366 379 foreach ( $packages_dependencies as $package => $dependencies ) { 367 380 $handle = 'wp-' . $package; … … 369 382 370 383 $scripts->add( $handle, $path, $dependencies, false, 1 ); 384 385 if ( isset( $package_translations[ $package ] ) ) { 386 $scripts->set_translations( $handle, $package_translations[ $package ] ); 387 } 371 388 } 372 389 }
Note: See TracChangeset
for help on using the changeset viewer.