Make WordPress Core

Changeset 30130


Ignore:
Timestamp:
11/01/2014 12:19:17 AM (10 years ago)
Author:
wonderboymusic
Message:

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

Props ericlewis.
Fixes #30218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/revisions.js

    r30128 r30130  
    1 /* global _wpRevisionsSettings, isRtl */
     1/* global isRtl */
    22/**
    33 * @file Revisions interface functions, Backbone classes and
     
    1515    revisions = wp.revisions = { model: {}, view: {}, controller: {} };
    1616
    17     // Link settings.
    18     revisions.settings = _.isUndefined( _wpRevisionsSettings ) ? {} : _wpRevisionsSettings;
     17    // Link post revisions data served from the back-end.
     18    revisions.settings = window._wpRevisionsSettings || {};
    1919
    2020    // For debugging
Note: See TracChangeset for help on using the changeset viewer.