Skip to content

Commit 0de31ac

Browse files
committed
Silence debug notices by manually defining $groupby.
This change is necessary because the WP_Signup_Query class follows the common pattern used by WordPress itself, which does have support for MySQL GROUP BY.
1 parent c3aa5cc commit 0de31ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wp-user-signups/includes/classes/class-wp-signup-query.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ protected function get_signup_ids() {
561561

562562
$where = implode( ' AND ', $this->sql_clauses['where'] );
563563

564+
// Not currently used. Set to empty to prevent debug notices.
565+
$groupby = '';
566+
564567
$pieces = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' );
565568

566569
/**

0 commit comments

Comments
 (0)