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

Props ericlewis.
Fixes #30218.

Built from https://develop.svn.wordpress.org/trunk@30130


git-svn-id: http://core.svn.wordpress.org/trunk@30130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-11-01 00:20:22 +00:00
parent a4963672d6
commit d1d93b7cda
3 changed files with 5 additions and 5 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;

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30129';
$wp_version = '4.1-alpha-30130';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.