[wp-trac] [WordPress Trac] #20982: Restoring post revisions does not update _edit_last
WordPress Trac
noreply at wordpress.org
Thu Feb 14 10:17:28 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 westi):
I've added Adams test case with some tweaks above.
Replying to [comment:6 ethitter]:
> Confirmed that the bug exists, and that the
[http://core.trac.wordpress.org/attachment/ticket/16215/16215.4.diff
16215.4.diff] patch addresses it.
>
> One point of clarity: the value of `_edit_last` will be set not to the
ID of the author of the restored revision, but to the ID of the user that
restored the revision. This approach seems appropriate, but I wanted to
note it here for others to consider.
That sounds right, at the moment the test is wrong for this - I left a
note in the test case because I'm not 100% sure it is right at the moment
but wanted to get it into the repo so we could iterate on the tests.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20982#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list