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

Props ericlewis.
Fixes #30221.

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


git-svn-id: http://core.svn.wordpress.org/trunk@30128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-11-01 00:08:21 +00:00
parent f1634f7c8f
commit 7cbb7552da
3 changed files with 10 additions and 3 deletions

View File

@ -1139,8 +1139,15 @@ window.wp = window.wp || {};
}
});
// Initialize the revisions UI.
/**
* Initialize the revisions UI for revision.php.
*/
revisions.init = function() {
// Bail if the current page is not revision.php.
if ( ! window.adminpage || 'revision-php' !== window.adminpage ) {
return;
}
revisions.view.frame = new revisions.view.Frame({
model: new revisions.model.FrameState({}, {
revisions: new revisions.model.Revisions( revisions.settings.revisionData )

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-30127';
$wp_version = '4.1-alpha-30128';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.