[wp-trac] [WordPress Trac] #20982: Restoring post revisions does not update _edit_last

WordPress Trac noreply at wordpress.org
Sat May 4 17:39:57 UTC 2013


#20982: Restoring post revisions does not update _edit_last
-----------------------------+--------------------
 Reporter:  redpixelstudios  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.6
Component:  Revisions        |     Version:  3.3.2
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+--------------------

Comment (by ocean90):

 Replying to [comment:14 adamsilverstein]:
 > not sure ```! $post_id``` part needed since ```is_wp_error( $post_id
 )``` will return false anyway if  ``` ! $post_id ```, right?

 No, see [source:trunk/wp-includes/class-wp-error.php:19712#L206].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20982#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list