-
-
Save DimaMinka/5e78137b7c0de4ccc6efbd1cdf22b85a 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