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:
Scott Taylor 2015-01-11 22:32:44 +00:00
parent f6d7c5e52f
commit 1178e8a6e1

View File

@ -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;
}
/**