[wp-trac] [WordPress Trac] #60299: Default assignment of `use_ssl` user meta value causes unnecessary DB write.

WordPress Trac noreply at wordpress.org
Fri Oct 11 17:18:19 UTC 2024


#60299: Default assignment of `use_ssl` user meta value causes unnecessary DB
write.
-------------------------------------------------+-------------------------
 Reporter:  prettyboymp                          |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.7
Component:  Users                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info commit                            |  performance
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59216" 59216]:
 {{{
 #!CommitTicketReference repository="" revision="59216"
 Users: remove unnecessary writes to the database for use_ssl user meta.

 When checking for updates to use_ssl, use strings for the comparison
 values, matching the stored values. Fixes an issue where calls to
 wp_update_user updated the database meta value for use_ssl even when the
 value was missing or unchanged.

 Props prettyboymp, rajinsharwar, adamsilverstein, johnbillion, rayhatron,
 mukesh27, joemcgill.

 Fixes #60299.
 }}}

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


More information about the wp-trac mailing list