diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 23663abbfe..d671597ed5 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -285,7 +285,10 @@ class WP_Comment_Query { * @return mixed|bool Return value of the callback, false otherwise. */ public function __call( $name, $arguments ) { - return call_user_func_array( array( $this, $name ), $arguments ); + if ( 'get_search_sql' === $name ) { + return call_user_func_array( array( $this, $name ), $arguments ); + } + return false; } /**