Make WordPress Core


Ignore:
Timestamp:
12/21/2020 08:21:12 PM (3 years ago)
Author:
johnbillion
Message:

XML-RPC: Emit an appropriate HTTP status code when an error is returned in response to an XML-RPC request.

This most notably affects the response when XML-RPC is disabled or when the supplied username and password is incorrect.

Props ericmann

Fixes #48213

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r49856 r49862  
    287287             * @since 3.5.0
    288288             *
    289              * @param string  $error The XML-RPC error message.
    290              * @param WP_Error $user  WP_Error object.
     289             * @param IXR_Error $error The XML-RPC error message.
     290             * @param WP_Error  $user  WP_Error object.
    291291             */
    292292            $this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user );
Note: See TracChangeset for help on using the changeset viewer.