Last active
November 17, 2019 07:26
-
-
Save zorca/6604680b92809359d8dd023b5c22c0ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'mysqlfix', -1 ); | |
function mysqlfix() { | |
global $wpdb; | |
# Removed ONLY_FULL_GROUP_BY | |
$wpdb->set_sql_mode(['TRADITIONAL']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment