# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: W:\www\NetbeansProjects\3rdParty_WordPress\wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
330 | 330 | return; |
331 | 331 | |
332 | 332 | $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST ); |
| 333 | $currentSqlMode = $wpdb->get_col("SELECT @@SESSION.sql_mode AS `a`;"); |
| 334 | $desiredSqlMode = str_replace(array('NO_ZERO_DATE', 'NO_ZERO_IN_DATE'), '', $currentSqlMode[0]); |
| 335 | unset($currentSqlMode); |
| 336 | $desiredSqlMode = str_replace(array(',,,', ',,'), ',', $desiredSqlMode); |
| 337 | $wpdb->query("SET SESSION sql_mode = '" . $desiredSqlMode . "'"); |
| 338 | unset($desiredSqlMode); |
333 | 339 | } |
334 | 340 | |
335 | 341 | /** |