mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Use HTTPS URLs for core.trac.wordpress.org
see #27115 git-svn-id: https://develop.svn.wordpress.org/trunk@29788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -11,12 +11,12 @@ class Tests_XMLRPC_wp_restoreRevision extends WP_XMLRPC_UnitTestCase {
|
||||
parent::setUp();
|
||||
|
||||
$this->post_id = $this->factory->post->create( array( 'post_content' => 'edit1' ) ); // Not saved as a revision
|
||||
// First saved revision on update, see http://core.trac.wordpress.org/changeset/24650
|
||||
// First saved revision on update, see https://core.trac.wordpress.org/changeset/24650
|
||||
wp_insert_post( array( 'ID' => $this->post_id, 'post_content' => 'edit2' ) );
|
||||
|
||||
$revisions = wp_get_post_revisions( $this->post_id );
|
||||
//$revision = array_shift( $revisions ); // First revision is empty - http://core.trac.wordpress.org/changeset/23842
|
||||
// First revision is NOT empty, see http://core.trac.wordpress.org/changeset/24650
|
||||
//$revision = array_shift( $revisions ); // First revision is empty - https://core.trac.wordpress.org/changeset/23842
|
||||
// First revision is NOT empty, see https://core.trac.wordpress.org/changeset/24650
|
||||
$revision = array_shift( $revisions );
|
||||
$this->revision_id = $revision->ID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user