In `WP_Roles`, only allow `__call()` to run against `->_init()`.
See #30891. Built from https://develop.svn.wordpress.org/trunk@31147 git-svn-id: http://core.svn.wordpress.org/trunk@31128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e6fc90f973
commit
a4092e90f0
|
@ -90,7 +90,10 @@ class WP_Roles {
|
||||||
* @return mixed|bool Return value of the callback, false otherwise.
|
* @return mixed|bool Return value of the callback, false otherwise.
|
||||||
*/
|
*/
|
||||||
public function __call( $name, $arguments ) {
|
public function __call( $name, $arguments ) {
|
||||||
return call_user_func_array( array( $this, $name ), $arguments );
|
if ( '_init' === $name ) {
|
||||||
|
return call_user_func_array( array( $this, $name ), $arguments );
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31146';
|
$wp_version = '4.2-alpha-31147';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue