[wp-trac] [WordPress Trac] #48097: Fix `user_registered` in WP_Insert_User function

WordPress Trac noreply at wordpress.org
Sat Sep 21 14:44:59 UTC 2019


#48097: Fix `user_registered` in WP_Insert_User function
-----------------------------------------+------------------------------
 Reporter:  mehrshaddarzi                |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Users                        |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------

Comment (by mehrshaddarzi):

 @SergeyBiryukov

 Yes, but this is a mistake because the gmdate() PHP function not
 considered WordPress gmt_offset Option.hense the correct time of
 registration is not entered into the database. If you see other functions
 such as wp_insert_post function
 [https://core.trac.wordpress.org/browser/tags/5.2.3/src/wp-
 includes/post.php?marks=3541#L3541] .The post_date that entered into the
 database exactly on the local WordPress Time.

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


More information about the wp-trac mailing list