[wp-trac] [WordPress Trac] #58999: wpdb set_Sql_mode array key bug

WordPress Trac noreply at wordpress.org
Tue Aug 8 00:39:51 UTC 2023


#58999: wpdb set_Sql_mode array key bug
--------------------------+------------------------------
 Reporter:  macitemre     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * focuses:  sustainability =>
 * version:  6.2.2 => 3.9


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report.

 Unless I'm missing something, the `foreach` loop only unsets those entries
 of the `$modes` array which are present in the `$incompatible_modes`
 array, the order of elements in both arrays should not matter.

 Could you provide the steps to reproduce it on a clean install?

 Introduced in [27072] / #26847, setting the version accordingly.

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


More information about the wp-trac mailing list