[wp-trac] [WordPress Trac] #54877: Occasional PHP exception being thrown on WPDB/MySQLi connections

WordPress Trac noreply at wordpress.org
Wed Jul 6 10:30:26 UTC 2022


#54877: Occasional PHP exception being thrown on WPDB/MySQLi connections
-------------------------------------------------+-------------------------
 Reporter:  johnjamesjacoby                      |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Database                             |     Version:  1.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing early        |     Focuses:
  commit                                         |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53671" 53671]:
 {{{
 #!CommitTicketReference repository="" revision="53671"
 Coding Standards: Simplify the logic for setting DB host and port in
 `wpdb::parse_db_host()`.

 This removes an extra `foreach` loop and the only variable variable
 (`$$component`) in core.

 Follow-up to [20088,28342,28736-28747], [41629], [41820], [42226],
 [53670].

 Props johnjamesjacoby.
 See #54877, #55647.
 }}}

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


More information about the wp-trac mailing list