mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-13 02:51:33 +01:00
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:
parent
a4963672d6
commit
d1d93b7cda
@ -1,4 +1,4 @@
|
|||||||
/* global _wpRevisionsSettings, isRtl */
|
/* global isRtl */
|
||||||
/**
|
/**
|
||||||
* @file Revisions interface functions, Backbone classes and
|
* @file Revisions interface functions, Backbone classes and
|
||||||
* the revisions.php document.ready bootstrap.
|
* the revisions.php document.ready bootstrap.
|
||||||
@ -14,8 +14,8 @@ window.wp = window.wp || {};
|
|||||||
*/
|
*/
|
||||||
revisions = wp.revisions = { model: {}, view: {}, controller: {} };
|
revisions = wp.revisions = { model: {}, view: {}, controller: {} };
|
||||||
|
|
||||||
// Link settings.
|
// Link post revisions data served from the back-end.
|
||||||
revisions.settings = _.isUndefined( _wpRevisionsSettings ) ? {} : _wpRevisionsSettings;
|
revisions.settings = window._wpRevisionsSettings || {};
|
||||||
|
|
||||||
// For debugging
|
// For debugging
|
||||||
revisions.debug = false;
|
revisions.debug = false;
|
||||||
|
2
wp-admin/js/revisions.min.js
vendored
2
wp-admin/js/revisions.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user