mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Revisions: Cleanup, bug fixes, refactoring, polish.
* Hide the tooltip initially. * Fix a bug with routing. * Further separate the Slider model and view, refactoring its code. * More reliance on events than direct calls between areas. * Smarter background diff loading (single mode). Loads the diffs closest to your position first. * Removed a bunch of manual templating and `render()` methods. Now relies more on the WP Backbone Views functionality. * include the requested `id` in `ensure:load`. * new trigger: `ensure`, for `ensure()` attempts, regardless of whether they are already loaded. * pass along a promise in both `ensure` and `ensure:load`. * in `ensure`, remove requests for diffs we aready have See #24425. git-svn-id: https://develop.svn.wordpress.org/trunk@24671 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -14,7 +14,8 @@ require ABSPATH . 'wp-admin/includes/revision.php';
|
||||
wp_reset_vars( array( 'revision', 'action', 'from', 'to' ) );
|
||||
|
||||
$revision_id = absint( $revision );
|
||||
$from = absint( $from );
|
||||
|
||||
$from = is_numeric( $from ) ? absint( $from ) : null;
|
||||
if ( ! $revision_id )
|
||||
$revision_id = absint( $to );
|
||||
$redirect = 'edit.php';
|
||||
|
||||
Reference in New Issue
Block a user