mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
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:
parent
f1634f7c8f
commit
7cbb7552da
@ -1139,8 +1139,15 @@ window.wp = window.wp || {};
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Initialize the revisions UI.
|
/**
|
||||||
|
* Initialize the revisions UI for revision.php.
|
||||||
|
*/
|
||||||
revisions.init = function() {
|
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({
|
revisions.view.frame = new revisions.view.Frame({
|
||||||
model: new revisions.model.FrameState({}, {
|
model: new revisions.model.FrameState({}, {
|
||||||
revisions: new revisions.model.Revisions( revisions.settings.revisionData )
|
revisions: new revisions.model.Revisions( revisions.settings.revisionData )
|
||||||
|
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-30127';
|
$wp_version = '4.1-alpha-30128';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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…
x
Reference in New Issue
Block a user