mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Tests: Replace use of $this->server with rest_get_server() for better memory recycling.
Props danielbachhuber. Fixes #41641. git-svn-id: https://develop.svn.wordpress.org/trunk@42724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -180,6 +180,13 @@ function _upload_dir_https( $uploads ) {
|
||||
return $uploads;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the Spy_REST_Server class for the REST server.
|
||||
*/
|
||||
function _wp_rest_server_class_filter() {
|
||||
return 'Spy_REST_Server';
|
||||
}
|
||||
|
||||
// Skip `setcookie` calls in auth_cookie functions due to warning:
|
||||
// Cannot modify header information - headers already sent by ...
|
||||
tests_add_filter( 'send_auth_cookies', '__return_false' );
|
||||
|
||||
Reference in New Issue
Block a user