Make WordPress Core

Changeset 1277 in tests


Ignore:
Timestamp:
05/06/2013 09:42:59 AM (11 years ago)
Author:
ocean90
Message:

Revisions: Use the correct user ID when checking _edit_last.

see [1210/tests], #20982.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/post/revisions.php

    r1251 r1277  
    4848
    4949        //is post_meta correctly set to revision author
    50         $this->assertEquals( $author_user_id, get_post_meta( $post_id, '_edit_last', true ) ); //after restoring user
     50        $this->assertEquals( $admin_user_id, get_post_meta( $post_id, '_edit_last', true ) ); //after restoring user
    5151
    5252        wp_set_current_user( 0 );
Note: See TracChangeset for help on using the changeset viewer.