Media: Enable JavaScript translations for the media-views script after [48232].
See #48463. git-svn-id: https://develop.svn.wordpress.org/trunk@48268 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
06f788f622
commit
35e7658df8
@ -1279,7 +1279,8 @@ function wp_default_scripts( $scripts ) {
|
||||
)
|
||||
);
|
||||
|
||||
$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-a11y', 'wp-sanitize', 'clipboard', 'wp-i18n' ), false, 1 );
|
||||
$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-a11y', 'wp-sanitize', 'clipboard' ), false, 1 );
|
||||
$scripts->set_translations( 'post' );
|
||||
did_action( 'init' ) && $scripts->localize(
|
||||
'post',
|
||||
'postL10n',
|
||||
|
Loading…
Reference in New Issue
Block a user