[wp-trac] [WordPress Trac] #58423: Avoid an extra database query in populate_network()

WordPress Trac noreply at wordpress.org
Tue May 30 14:32:40 UTC 2023


#58423: Avoid an extra database query in populate_network()
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  Upgrade/Install                      |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch good-first-bug needs-      |     Focuses:  multisite,
  testing                                        |  performance
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55869" 55869]:
 {{{
 #!CommitTicketReference repository="" revision="55869"
 Upgrade/Install: Avoid an extra database query in `populate_network()`.

 This moves the query for user ID of the new network's administrator closer
 to where the value is actually used.

 Includes removing unnecessary `get_userdata()` call, as user ID is the
 only data needed here.

 Follow-up to [12756], [35575], [43628].

 Props nihar007, sakibmd, mukesh27, costdev, SergeyBiryukov.
 Fixes #58423.
 }}}

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


More information about the wp-trac mailing list