In WP_Comment_Query
, only allow __call()
to run against ->get_search_sql()
.
See #30891. git-svn-id: https://develop.svn.wordpress.org/trunk@31150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f6d7c5e52f
commit
1178e8a6e1
@ -285,8 +285,11 @@ class WP_Comment_Query {
|
||||
* @return mixed|bool Return value of the callback, false otherwise.
|
||||
*/
|
||||
public function __call( $name, $arguments ) {
|
||||
if ( 'get_search_sql' === $name ) {
|
||||
return call_user_func_array( array( $this, $name ), $arguments );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the query
|
||||
|
Loading…
Reference in New Issue
Block a user