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

WordPress Trac noreply at wordpress.org
Sat May 4 17:07:31 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 adamsilverstein):

 Replying to [comment:13 ocean90]:
 > [attachment:20982.patch] moves the line into
 `wp_restore_post_revision()` because it's also called in
 `wp_restoreRevision()`.

 looks like a good spot for this...

 not sure ```! $post_id``` part needed since ```is_wp_error( $post_id )```
 will return false anyway if  ``` ! $post_id ```, right?

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


More information about the wp-trac mailing list