Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #48377, comment 8


Ignore:
Timestamp:
12/20/2021 12:32:53 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48377, comment 8

    initial v1  
    11I found this code with my modification to take care of this error if you run into it.
     2{{{
    23add_action( 'init', 'mysql_set_sql_mode_traditional', -1);
    34function mysql_set_sql_mode_traditional() {
     
    78$wpdb->query("SET SESSION sql_mode = 'NO_ZERO_IN_DATE'");
    89}
     10}}}
    911Add it into your function.php theme file or a file in mu-plugin