Make WordPress Core


Ignore:
Timestamp:
07/12/2013 02:01:39 PM (13 years ago)
Author:
markjaquith
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/revision.php

    r24667 r24671  
    1515
    1616$revision_id = absint( $revision );
    17 $from = absint( $from );
     17
     18$from = is_numeric( $from ) ? absint( $from ) : null;
    1819if ( ! $revision_id )
    1920        $revision_id = absint( $to );
Note: See TracChangeset for help on using the changeset viewer.