d0ec93f293
* 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
11 lines
383 B
JavaScript
11 lines
383 B
JavaScript
/**
|
|
* Mock the deprecateL10nObject() for tests.
|
|
*
|
|
* deprecateL10nObject() is part of wp-admin/js/common.js which requires
|
|
* some HTML markup to exist. Instead of adding all the markup this adds
|
|
* a noop version of deprecateL10nObject(). This makes it possible
|
|
* to test wp-admin/js/dashboard.js.
|
|
*/
|
|
window.wp = window.wp || {};
|
|
window.wp.deprecateL10nObject = function () {};
|