Make WordPress Core

Changeset 30128


Ignore:
Timestamp:
11/01/2014 12:07:34 AM (9 years ago)
Author:
wonderboymusic
Message:

Allow revision Backbone classes to be used on pages other than revision.php.

Props ericlewis.
Fixes #30221.

File:
1 edited

Legend:

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

    r30127 r30128  
    11401140    });
    11411141
    1142     // Initialize the revisions UI.
     1142    /**
     1143     * Initialize the revisions UI for revision.php.
     1144     */
    11431145    revisions.init = function() {
     1146        // Bail if the current page is not revision.php.
     1147        if ( ! window.adminpage || 'revision-php' !== window.adminpage ) {
     1148            return;
     1149        }
     1150
    11441151        revisions.view.frame = new revisions.view.Frame({
    11451152            model: new revisions.model.FrameState({}, {
Note: See TracChangeset for help on using the changeset viewer.