Make WordPress Core


Ignore:
Timestamp:
03/29/2013 05:28:44 AM (12 years ago)
Author:
azaozz
Message:

Post revisions:

  • Always update the revision version when updating post authors.
  • Check if revisions have been updated and return early.
  • Update the revisions by direct query to avoid resetting post_modified.
  • Fix a bug where we may be comparing with an autosave but need to compare with the latest revision.

Fixes #16215.

File:
1 edited

Legend:

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

    r23830 r23849  
    14251425    // Since 3.6 revisions include a copy of the current post data as a revision.
    14261426    // The following removes that revision when $parent == false
    1427     $parent_included = wp_first_revision_matches_current_version( $post_id );
     1427    $parent_included = _wp_last_revision_matches_current_post( $post_id );
    14281428    if ( $parent_included && ! $parent )
    14291429        array_pop( $revisions );
Note: See TracChangeset for help on using the changeset viewer.