In `WP_Comment_Query`, only allow `__call()` to run against `->get_search_sql()`.
See #30891. Built from https://develop.svn.wordpress.org/trunk@31150 git-svn-id: http://core.svn.wordpress.org/trunk@31131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e84d59de5
commit
61e12e00c1
|
@ -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
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31149';
|
||||
$wp_version = '4.2-alpha-31150';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue