diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php index 05aa4fb97e..8fd48f1dac 100644 --- a/src/wp-includes/class-wp-comment-query.php +++ b/src/wp-includes/class-wp-comment-query.php @@ -1132,14 +1132,14 @@ class WP_Comment_Query { * * @global wpdb $wpdb WordPress database abstraction object. * - * @param string $string + * @param string $search * @param array $cols * @return string */ - protected function get_search_sql( $string, $cols ) { + protected function get_search_sql( $search, $cols ) { global $wpdb; - $like = '%' . $wpdb->esc_like( $string ) . '%'; + $like = '%' . $wpdb->esc_like( $search ) . '%'; $searches = array(); foreach ( $cols as $col ) {