[wp-trac] [WordPress Trac] #47083: Site Info Update Not Adjusting "Last Updated" Value

WordPress Trac noreply at wordpress.org
Tue Apr 30 14:30:27 UTC 2019


#47083: Site Info Update Not Adjusting "Last Updated" Value
--------------------------------+-----------------------------
 Reporter:  conner_bw           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  5.1.1
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 + Navigate to `/wp-admin/network/site-info.php?id=XXX` where XXX is a
 valid Site ID.
  + Checkmark: Spam
  + Click: Save Changes

 Expected: "Last Updated" changed to current time.
 Actual: "Last Updated" not changed.

 ---

 This is in contrast to `/wp-admin/network/sites.php` -> Bulk action ->
 Mark as Spam.
 Doing it bulk updates the Last Updated field to current time.

 ---

 In fact, behaviour is broken since 5.1.0


 `update_blog_details` function used to do:

 {{{
         $details = array_merge($current_details, $details);
         $details['last_updated'] = current_time('mysql', true);
 }}}
 https://github.com/WordPress/wordpress-develop/blob/5.0/src/wp-includes
 /ms-blogs.php#L297

 ---

 This is a problem because we use "Last Updated" field to purge spam. It
 gives users X days from the "Last Updated" value to dispute the spam.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47083>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list