diff options
author | Dominik Schilling <ocean90@git.wordpress.org> | 2020-10-14 21:11:09 +0000 |
---|---|---|
committer | Dominik Schilling <ocean90@git.wordpress.org> | 2020-10-14 21:11:09 +0000 |
commit | d0ec93f2939a5ac6c1dccbb4114c256a9fb1215e (patch) | |
tree | 12538405b5386c3c5663b25a97a52517b47a35d3 /src/js/_enqueues/wp/updates.js | |
parent | 0aa3ade1fe0e7afeb23f2df67a0d6014f074df41 (diff) | |
download | wordpress-d0ec93f2939a5ac6c1dccbb4114c256a9fb1215e.tar.gz wordpress-d0ec93f2939a5ac6c1dccbb4114c256a9fb1215e.zip |
I18N: Use `wp.i18n` for translatable strings in `wp-admin/js/dashboard.js`.
* Deprecate the `l10n` property on `communityEventsData`.
* Introduce `version` parameter for `deprecateL10nObject` and backfill the version for deprecated objects in 5.5.0.
* Add a noop version of `deprecateL10nObject` for QUnit testing.
Fixes #51498.
git-svn-id: https://develop.svn.wordpress.org/trunk@49151 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/wp/updates.js')
-rw-r--r-- | src/js/_enqueues/wp/updates.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js index 36a9437db9..402afaf585 100644 --- a/src/js/_enqueues/wp/updates.js +++ b/src/js/_enqueues/wp/updates.js @@ -115,7 +115,7 @@ autoUpdatesError: '' }; - wp.updates.l10n = window.wp.deprecateL10nObject( 'wp.updates.l10n', wp.updates.l10n ); + wp.updates.l10n = window.wp.deprecateL10nObject( 'wp.updates.l10n', wp.updates.l10n, '5.5.0' ); /** * User nonce for ajax calls. |