Make WordPress Core


Ignore:
Timestamp:
07/11/2013 10:56:48 PM (11 years ago)
Author:
markjaquith
Message:

Revisions: real URLs and preloading of the requested diff.

  • Real URLs are being used now, using pushState. ?revision={id} or ?from={from}&to={to}.
  • Drop the redundant action=edit from the URLs (this is the default).
  • The initial comparison is preloaded, whether a single revision or a compare-two situation.

See #24425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r24593 r24664  
    898898        return;
    899899
    900     if ( 'display' == $context )
     900    if ( 'revision' === $post->post_type )
     901        $action = '';
     902    elseif ( 'display' == $context )
    901903        $action = '&action=edit';
    902904    else
Note: See TracChangeset for help on using the changeset viewer.