- add comment about SQL_CALC_FOUND_ROWS

This commit is contained in:
andrewshuba
2021-01-20 15:26:01 +02:00
parent 9a298581dc
commit be4b56b5d6
@@ -818,6 +818,12 @@ if ( ! class_exists( 'um\core\Member_Directory_Meta' ) ) {
global $wpdb;
/*
*
* SQL_CALC_FOUND_ROWS is deprecated as of MySQL 8.0.17
* https://core.trac.wordpress.org/ticket/47280
*
* */
$user_ids = $wpdb->get_col(
"SELECT SQL_CALC_FOUND_ROWS DISTINCT u.ID
{$this->select}