[wp-trac] [WordPress Trac] #41064: Registered and last edited dates on new sites should be identical

WordPress Trac noreply at wordpress.org
Mon Oct 2 03:53:35 UTC 2017


#41064: Registered and last edited dates on new sites should be identical
------------------------------------------+------------------------------
 Reporter:  desrosj                       |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Networks and Sites            |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  multisite
------------------------------------------+------------------------------

Comment (by jeremyfelt):

 In `wpmu_create_blog()`, `update_blog_status()` is fired for at least the
 `public` meta key. This in turn updates the `last_updated` column for the
 site. That appears to be where the offset is happening.

 One option could be to not store `last_updated` when `wp_is_installing()`.
 In this case, it would be `0000-00-00 00:00:00` rather than the same or a
 second off, but may be a more accurate indicator of whether the site has
 been updated after install.

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


More information about the wp-trac mailing list