updated plugin Jetpack Protect
version 1.1.2
This commit is contained in:
@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.47.0] - 2022-11-30
|
||||
### Added
|
||||
- Added full response logging for failed Sync data requests. [#27644]
|
||||
|
||||
## [1.46.4] - 2022-11-22
|
||||
### Changed
|
||||
- Updated package dependencies. [#27043]
|
||||
|
||||
## [1.46.3] - 2022-11-08
|
||||
### Changed
|
||||
- Updated package dependencies. [#27289]
|
||||
@ -721,6 +729,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Separate the connection library into its own package.
|
||||
|
||||
[1.47.0]: https://github.com/Automattic/jetpack-connection/compare/v1.46.4...v1.47.0
|
||||
[1.46.4]: https://github.com/Automattic/jetpack-connection/compare/v1.46.3...v1.46.4
|
||||
[1.46.3]: https://github.com/Automattic/jetpack-connection/compare/v1.46.2...v1.46.3
|
||||
[1.46.2]: https://github.com/Automattic/jetpack-connection/compare/v1.46.1...v1.46.2
|
||||
[1.46.1]: https://github.com/Automattic/jetpack-connection/compare/v1.46.0...v1.46.1
|
||||
|
@ -4,18 +4,18 @@
|
||||
"type": "jetpack-library",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"require": {
|
||||
"automattic/jetpack-a8c-mc-stats": "^1.4",
|
||||
"automattic/jetpack-admin-ui": "^0.2",
|
||||
"automattic/jetpack-constants": "^1.6",
|
||||
"automattic/jetpack-roles": "^1.4",
|
||||
"automattic/jetpack-status": "^1.15",
|
||||
"automattic/jetpack-redirect": "^1.7"
|
||||
"automattic/jetpack-a8c-mc-stats": "^1.4.16",
|
||||
"automattic/jetpack-admin-ui": "^0.2.13",
|
||||
"automattic/jetpack-constants": "^1.6.19",
|
||||
"automattic/jetpack-roles": "^1.4.18",
|
||||
"automattic/jetpack-status": "^1.15.1",
|
||||
"automattic/jetpack-redirect": "^1.7.20"
|
||||
},
|
||||
"require-dev": {
|
||||
"automattic/wordbless": "@dev",
|
||||
"yoast/phpunit-polyfills": "1.0.3",
|
||||
"brain/monkey": "2.6.1",
|
||||
"automattic/jetpack-changelogger": "^3.2"
|
||||
"automattic/jetpack-changelogger": "^3.2.1"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
@ -56,7 +56,7 @@
|
||||
"link-template": "https://github.com/Automattic/jetpack-connection/compare/v${old}...v${new}"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-trunk": "1.46.x-dev"
|
||||
"dev-trunk": "1.47.x-dev"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
@ -34,6 +34,13 @@ class Jetpack_IXR_Client extends IXR_Client {
|
||||
*/
|
||||
public $response_headers = null;
|
||||
|
||||
/**
|
||||
* Holds the raw remote response from the latest call to query().
|
||||
*
|
||||
* @var null|array|WP_Error
|
||||
*/
|
||||
public $last_response = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* Initialize a new Jetpack IXR client instance.
|
||||
@ -77,6 +84,13 @@ class Jetpack_IXR_Client extends IXR_Client {
|
||||
// Store response headers.
|
||||
$this->response_headers = wp_remote_retrieve_headers( $response );
|
||||
|
||||
$this->last_response = $response;
|
||||
if ( is_array( $this->last_response ) && isset( $this->last_response['http_response'] ) ) {
|
||||
// If the expected array response is received, format the data as plain arrays.
|
||||
$this->last_response = $this->last_response['http_response']->to_array();
|
||||
$this->last_response['headers'] = $this->last_response['headers']->getAll();
|
||||
}
|
||||
|
||||
if ( is_wp_error( $response ) ) {
|
||||
$this->error = new IXR_Error( -10520, sprintf( 'Jetpack: [%s] %s', $response->get_error_code(), $response->get_error_message() ) );
|
||||
return false;
|
||||
@ -154,4 +168,13 @@ class Jetpack_IXR_Client extends IXR_Client {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the raw response for the last query() call.
|
||||
*
|
||||
* @return null|array|WP_Error
|
||||
*/
|
||||
public function get_last_response() {
|
||||
return $this->last_response;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace Automattic\Jetpack\Connection;
|
||||
*/
|
||||
class Package_Version {
|
||||
|
||||
const PACKAGE_VERSION = '1.46.3';
|
||||
const PACKAGE_VERSION = '1.47.0';
|
||||
|
||||
const PACKAGE_SLUG = 'connection';
|
||||
|
||||
|
Reference in New Issue
Block a user