Set `revision.settings` via short-circuit check for `window` property: `window._wpRevisionsSettings || {}`

Props ericlewis.
Fixes #30218.


git-svn-id: https://develop.svn.wordpress.org/trunk@30130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-11-01 00:19:17 +00:00
parent ee56980498
commit 8d2595d7ff
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* global _wpRevisionsSettings, isRtl */
/* global isRtl */
/**
* @file Revisions interface functions, Backbone classes and
* the revisions.php document.ready bootstrap.
@ -14,8 +14,8 @@ window.wp = window.wp || {};
*/
revisions = wp.revisions = { model: {}, view: {}, controller: {} };
// Link settings.
revisions.settings = _.isUndefined( _wpRevisionsSettings ) ? {} : _wpRevisionsSettings;
// Link post revisions data served from the back-end.
revisions.settings = window._wpRevisionsSettings || {};
// For debugging
revisions.debug = false;