'jetpack' ), array( 'status' => 400 ) ); return null; } finally { $this->doing_determine_current_user_filter = false; } } /** * Report authentication status to the WP REST API. * * @param WP_Error|mixed $value Error from another authentication handler, null if we should handle it, or another value if not. * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication} */ public function wp_rest_authentication_errors( $value ) { if ( null !== $value ) { return $value; } return $this->rest_authentication_status; } /** * Resets the saved authentication state in between testing requests. */ public function reset_saved_auth_state() { $this->rest_authentication_status = null; $this->connection_manager->reset_saved_auth_state(); } }