XMLRPC: Revert the changes to WP_XMLRPC_UnitTestCase
in [35366] as they weren't required.
See #34336 git-svn-id: https://develop.svn.wordpress.org/trunk@35367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
75ab50c70e
commit
f70e623991
@ -11,14 +11,12 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
|
||||
|
||||
add_filter( 'pre_option_enable_xmlrpc', '__return_true' );
|
||||
|
||||
$this->myxmlrpcserver = new WP_XMLRPC_Server_UnitTestable();
|
||||
$this->myxmlrpcserver = new wp_xmlrpc_server();
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
|
||||
|
||||
$this->myxmlrpcserver->reset_failed_auth();
|
||||
|
||||
$this->remove_added_uploads();
|
||||
|
||||
parent::tearDown();
|
||||
@ -31,10 +29,5 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
|
||||
'role' => $role
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
class WP_XMLRPC_Server_UnitTestable extends wp_xmlrpc_server {
|
||||
public function reset_failed_auth() {
|
||||
$this->auth_failed = false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user