Plugin Directory

Timestamp:
04/10/2024 08:25:49 PM (3 months ago)
Author:
zinigor
Message:

Updating trunk to version 13.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/jetpack_vendor/automattic/jetpack-connection/src/class-rest-authentication.php

    r3067143 r3068647  
    88namespace Automattic\Jetpack\Connection;
    99
    10 use WP_Error;
    11 
    1210/**
    1311 * The Jetpack Connection Rest Authentication class.
     
    121119
    122120            if ( ! isset( $_SERVER['REQUEST_METHOD'] ) ) {
    123                 $this->rest_authentication_status = new WP_Error(
     121                $this->rest_authentication_status = new WP_Error(
    124122                    'rest_invalid_request',
    125123                    __( 'The request method is missing.', 'jetpack-connection' ),
     
    134132            // needed.
    135133            if ( 'GET' !== $_SERVER['REQUEST_METHOD'] && 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
    136                 $this->rest_authentication_status = new WP_Error(
     134                $this->rest_authentication_status = new WP_Error(
    137135                    'rest_invalid_request',
    138136                    __( 'This request method is not supported.', 'jetpack-connection' ),
     
    142140            }
    143141            if ( 'POST' !== $_SERVER['REQUEST_METHOD'] && ! empty( file_get_contents( 'php://input' ) ) ) {
    144                 $this->rest_authentication_status = new WP_Error(
     142                $this->rest_authentication_status = new WP_Error(
    145143                    'rest_invalid_request',
    146144                    __( 'This request method does not support body parameters.', 'jetpack-connection' ),
     
    176174
    177175            // Something else went wrong.  Probably a signature error.
    178             $this->rest_authentication_status = new WP_Error(
     176            $this->rest_authentication_status = new WP_Error(
    179177                'rest_invalid_signature',
    180178                __( 'The request is not signed correctly.', 'jetpack-connection' ),
Note: See TracChangeset for help on using the changeset viewer.