updated plugin Jetpack Protect
version 2.2.0
This commit is contained in:
@ -5,6 +5,46 @@ 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).
|
||||
|
||||
## [3.1.11] - 2024-05-16
|
||||
### Changed
|
||||
- Updated package dependencies. [#37379]
|
||||
|
||||
## [3.1.10] - 2024-05-06
|
||||
### Changed
|
||||
- Updated package dependencies. [#37147]
|
||||
|
||||
## [3.1.9] - 2024-04-26
|
||||
### Changed
|
||||
- Internal updates.
|
||||
|
||||
## [3.1.8] - 2024-04-25
|
||||
### Changed
|
||||
- Internal updates.
|
||||
|
||||
## [3.1.7] - 2024-04-22
|
||||
### Changed
|
||||
- Internal updates.
|
||||
|
||||
## [3.1.6] - 2024-04-15
|
||||
### Changed
|
||||
- Internal updates.
|
||||
|
||||
## [3.1.5] - 2024-04-11
|
||||
### Changed
|
||||
- Internal updates.
|
||||
|
||||
## [3.1.4] - 2024-04-08
|
||||
### Changed
|
||||
- Updated package dependencies. [#36760]
|
||||
|
||||
## [3.1.3] - 2024-03-27
|
||||
### Changed
|
||||
- Updated package dependencies. [#36585]
|
||||
|
||||
## [3.1.2] - 2024-03-25
|
||||
### Changed
|
||||
- Update Phan baselines [#36441]
|
||||
|
||||
## [3.1.1] - 2024-03-14
|
||||
### Changed
|
||||
- Internal updates.
|
||||
@ -683,6 +723,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Update Jetpack to use new JITM package
|
||||
|
||||
[3.1.11]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.10...v3.1.11
|
||||
[3.1.10]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.9...v3.1.10
|
||||
[3.1.9]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.8...v3.1.9
|
||||
[3.1.8]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.7...v3.1.8
|
||||
[3.1.7]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.6...v3.1.7
|
||||
[3.1.6]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.5...v3.1.6
|
||||
[3.1.5]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.4...v3.1.5
|
||||
[3.1.4]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.3...v3.1.4
|
||||
[3.1.3]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.2...v3.1.3
|
||||
[3.1.2]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.1...v3.1.2
|
||||
[3.1.1]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.0...v3.1.1
|
||||
[3.1.0]: https://github.com/Automattic/jetpack-jitm/compare/v3.0.5...v3.1.0
|
||||
[3.0.5]: https://github.com/Automattic/jetpack-jitm/compare/v3.0.4...v3.0.5
|
||||
|
@ -6,17 +6,17 @@
|
||||
"require": {
|
||||
"php": ">=7.0",
|
||||
"automattic/jetpack-a8c-mc-stats": "^2.0.1",
|
||||
"automattic/jetpack-assets": "^2.1.4",
|
||||
"automattic/jetpack-connection": "^2.4.1",
|
||||
"automattic/jetpack-device-detection": "^2.1.1",
|
||||
"automattic/jetpack-logo": "^2.0.1",
|
||||
"automattic/jetpack-redirect": "^2.0.1",
|
||||
"automattic/jetpack-status": "^2.1.2"
|
||||
"automattic/jetpack-assets": "^2.1.10",
|
||||
"automattic/jetpack-connection": "^2.8.2",
|
||||
"automattic/jetpack-device-detection": "^2.1.3",
|
||||
"automattic/jetpack-logo": "^2.0.2",
|
||||
"automattic/jetpack-redirect": "^2.0.2",
|
||||
"automattic/jetpack-status": "^3.0.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"brain/monkey": "2.6.1",
|
||||
"yoast/phpunit-polyfills": "1.1.0",
|
||||
"automattic/jetpack-changelogger": "^4.1.1"
|
||||
"automattic/jetpack-changelogger": "^4.2.3"
|
||||
},
|
||||
"suggest": {
|
||||
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
|
||||
|
@ -20,7 +20,7 @@ use Automattic\Jetpack\Status;
|
||||
*/
|
||||
class JITM {
|
||||
|
||||
const PACKAGE_VERSION = '3.1.1';
|
||||
const PACKAGE_VERSION = '3.1.11';
|
||||
|
||||
/**
|
||||
* The configuration method that is called from the jetpack-config package.
|
||||
|
@ -27,7 +27,7 @@ class Post_Connection_JITM extends JITM {
|
||||
/**
|
||||
* Tracking object.
|
||||
*
|
||||
* @var Automattic\Jetpack\Tracking
|
||||
* @var \Automattic\Jetpack\Tracking
|
||||
*
|
||||
* @access private
|
||||
*/
|
||||
@ -43,9 +43,9 @@ class Post_Connection_JITM extends JITM {
|
||||
/**
|
||||
* A special filter for WooCommerce, to set a message based on local state.
|
||||
*
|
||||
* @param string $content The current message.
|
||||
* @param object $content The current message.
|
||||
*
|
||||
* @return array The new message.
|
||||
* @return object The new message.
|
||||
*/
|
||||
public static function jitm_woocommerce_services_msg( $content ) {
|
||||
if ( ! function_exists( 'wc_get_base_location' ) ) {
|
||||
|
@ -8,6 +8,8 @@
|
||||
namespace Automattic\Jetpack\JITMS;
|
||||
|
||||
use Automattic\Jetpack\Connection\REST_Connector;
|
||||
use WP_Error;
|
||||
use WP_REST_Request;
|
||||
use WP_REST_Server;
|
||||
|
||||
/**
|
||||
@ -61,7 +63,7 @@ class Rest_Api_Endpoints {
|
||||
$query['s'] = $request['s'];
|
||||
}
|
||||
|
||||
return $jitm->get_messages( $request['message_path'], urldecode_deep( $query ), 'true' === $request['full_jp_logo_exists'] ? true : false );
|
||||
return $jitm->get_messages( $request['message_path'], urldecode_deep( $query ), 'true' === $request['full_jp_logo_exists'] );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -91,6 +93,6 @@ class Rest_Api_Endpoints {
|
||||
return true;
|
||||
}
|
||||
|
||||
return new \WP_Error( 'invalid_user_permission_jetpack_delete_jitm_message', REST_Connector::get_user_permissions_error_msg(), array( 'status' => rest_authorization_required_code() ) );
|
||||
return new WP_Error( 'invalid_user_permission_jetpack_delete_jitm_message', REST_Connector::get_user_permissions_error_msg(), array( 'status' => rest_authorization_required_code() ) );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user