Changeset 29788 for trunk/tests/phpunit/tests/xmlrpc/wp/restoreRevision.php
- Timestamp:
- 09/29/2014 01:27:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/restoreRevision.php
r25002 r29788 12 12 13 13 $this->post_id = $this->factory->post->create( array( 'post_content' => 'edit1' ) ); // Not saved as a revision 14 // First saved revision on update, see http ://core.trac.wordpress.org/changeset/2465014 // First saved revision on update, see https://core.trac.wordpress.org/changeset/24650 15 15 wp_insert_post( array( 'ID' => $this->post_id, 'post_content' => 'edit2' ) ); 16 16 17 17 $revisions = wp_get_post_revisions( $this->post_id ); 18 //$revision = array_shift( $revisions ); // First revision is empty - http ://core.trac.wordpress.org/changeset/2384219 // First revision is NOT empty, see http ://core.trac.wordpress.org/changeset/2465018 //$revision = array_shift( $revisions ); // First revision is empty - https://core.trac.wordpress.org/changeset/23842 19 // First revision is NOT empty, see https://core.trac.wordpress.org/changeset/24650 20 20 $revision = array_shift( $revisions ); 21 21 $this->revision_id = $revision->ID;
Note: See TracChangeset
for help on using the changeset viewer.