[wp-trac] [WordPress Trac] #42446: Bulk edits don't update "last edited by..." which user

WordPress Trac noreply at wordpress.org
Tue Sep 21 06:01:00 UTC 2021


#42446: Bulk edits don't update "last edited by..." which user
----------------------------------------+------------------------------
 Reporter:  calebwoodbridge             |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Posts, Post Types           |     Version:  4.9
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  administration
----------------------------------------+------------------------------
Changes (by peterwilsoncc):

 * keywords:   => needs-patch good-first-bug
 * component:  Administration => Posts, Post Types


Comment:

 Hello and a belated welcome to trac!

 I'm sorry it's take a while for you to hear back but
 [https://wordpress.slack.com/archives/C02RQBWTW/p1632201708409200 this
 ticket was discussed earlier today] in a triage session.

 During the triage session we were able to reproduce the bug and narrow
 down the cause: the function `bulk_edit_posts()` is used for bulk updates
 but fails to update the meta data to indicate who last modified the post.

 To resolve this technically, the following code needs to be run for each
 post that is updated: `update_post_meta( $post_ID, '_edit_last',
 get_current_user_id() );`

 I've moved this to the Posts component and made a few other administrative
 changes.

 Thanks for your patience.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42446#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list