Repository navigation
Fix: Replace deprecated wp.updates.l10n.updating with wp.i18n.__ #10896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
2e84644
f00cd1b
f9275df
82ec88f
2bf6bf9
9edb3aa
8ee5f47
67ab151
42840a7
93d8f81
05909b3
2c024ca
551f045
db2ee45
b0bb009
ff85290
d0c896c
4977c8c
51bbbe3
5b7cfda
58d0d59
4f66bf1
74a9c43
7741ec8
74b4175
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,7 @@ | |
| ); | ||
|
|
||
| wp_enqueue_script( 'theme' ); | ||
| wp_set_script_translations( 'theme' ); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of calling --- a/src/wp-includes/script-loader.php
+++ b/src/wp-includes/script-loader.php
@@ -1455,2 +1455,3 @@
$scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone', 'wp-a11y', 'customize-base' ), false, 1 );
+ $scripts->set_translations( 'theme' );
--- a/src/wp-admin/themes.php
+++ b/src/wp-admin/themes.php
@@ -247,3 +247,2 @@
wp_enqueue_script( 'theme' );
-wp_set_script_translations( 'theme' );
wp_enqueue_script( 'updates' );
--- a/src/wp-admin/theme-install.php
+++ b/src/wp-admin/theme-install.php
@@ -82,3 +82,2 @@
wp_enqueue_script( 'theme' );
-wp_set_script_translations( 'theme' );
wp_enqueue_script( 'updates' ); |
||
| wp_enqueue_script( 'updates' ); | ||
|
|
||
| if ( $tab ) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is valid feedback and should be addressed.