# 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.
Index: load.php
--- load.php Base (BASE)
+++ load.php Locally Modified (Based On LOCAL)
@@ -330,6 +330,12 @@
 		return;
 
 	$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
+	$currentSqlMode = $wpdb->get_col("SELECT @@SESSION.sql_mode AS `a`;");
+	$desiredSqlMode = str_replace(array('NO_ZERO_DATE', 'NO_ZERO_IN_DATE'), '', $currentSqlMode[0]);
+	unset($currentSqlMode);
+	$desiredSqlMode = str_replace(array(',,,', ',,'), ',', $desiredSqlMode);
+	$wpdb->query("SET SESSION sql_mode = '" . $desiredSqlMode . "'");
+	unset($desiredSqlMode);
 }
 
 /**
