WordPress.org

Make WordPress Core

Changeset 1254 in tests


Ignore:
Timestamp:
04/03/2013 06:33:08 PM (7 years ago)
Author:
kurtpayne
Message:

First revision is empty, ignore it

See #16215, r23842

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/xmlrpc/wp/restoreRevision.php

    r1050 r1254  
    1515
    1616        $revisions = wp_get_post_revisions( $this->post_id );
     17        $revision = array_shift( $revisions ); // First revision is empty - http://core.trac.wordpress.org/changeset/23842
    1718        $revision = array_shift( $revisions );
    1819        $this->revision_id = $revision->ID;
Note: See TracChangeset for help on using the changeset viewer.