updated plugin Jetpack Protect
version 1.4.2
This commit is contained in:
@ -5,6 +5,85 @@ 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).
|
||||
|
||||
## [2.5.1] - 2023-10-19
|
||||
### Changed
|
||||
- Updated package dependencies. [#33687]
|
||||
|
||||
## [2.5.0] - 2023-10-10
|
||||
### Added
|
||||
- JITMs can now redirect to a specific Jetpack settings page. [#32826]
|
||||
|
||||
### Changed
|
||||
- Update color of WooCommerce logo. [#33491]
|
||||
- Updated package dependencies. [#33428]
|
||||
|
||||
## [2.4.0] - 2023-09-28
|
||||
### Changed
|
||||
- Moved tracking for JITM buttons into JITM script, added message_path property [#33252]
|
||||
|
||||
## [2.3.19] - 2023-09-19
|
||||
|
||||
- Minor internal updates.
|
||||
|
||||
## [2.3.18] - 2023-09-04
|
||||
### Changed
|
||||
- Updated package dependencies. [#32803]
|
||||
|
||||
## [2.3.17] - 2023-08-23
|
||||
### Changed
|
||||
- Updated package dependencies. [#32605]
|
||||
|
||||
## [2.3.16] - 2023-08-21
|
||||
### Fixed
|
||||
- Update secondary button styling [#32503]
|
||||
|
||||
## [2.3.15] - 2023-08-09
|
||||
### Changed
|
||||
- Updated package dependencies. [#32166]
|
||||
|
||||
## [2.3.14] - 2023-07-25
|
||||
### Changed
|
||||
- Updated package dependencies. [#32040]
|
||||
|
||||
## [2.3.13] - 2023-07-17
|
||||
### Changed
|
||||
- Generate query string when using the WPCOM API to fetch JITMs [#31809]
|
||||
|
||||
## [2.3.12] - 2023-07-11
|
||||
### Changed
|
||||
- Updated package dependencies. [#31785]
|
||||
|
||||
## [2.3.11] - 2023-07-05
|
||||
### Changed
|
||||
- Updated package dependencies. [#31659]
|
||||
|
||||
## [2.3.10] - 2023-06-23
|
||||
### Changed
|
||||
- Updated package dependencies. [#31468]
|
||||
|
||||
## [2.3.9] - 2023-06-06
|
||||
### Changed
|
||||
- Updated package dependencies. [#31129]
|
||||
|
||||
## [2.3.8] - 2023-05-08
|
||||
### Added
|
||||
- JITM: Add jetpack-videopress to JITM refetch on hashchange list [#30465]
|
||||
|
||||
## [2.3.7] - 2023-05-02
|
||||
### Changed
|
||||
- Updated package dependencies. [#30375]
|
||||
|
||||
## [2.3.6] - 2023-04-10
|
||||
### Added
|
||||
- Add Jetpack Autoloader package suggestion. [#29988]
|
||||
|
||||
## [2.3.5] - 2023-04-04
|
||||
### Added
|
||||
- Add external link icons in JITM [#29654]
|
||||
|
||||
### Changed
|
||||
- Updated package dependencies. [#29854]
|
||||
|
||||
## [2.3.4] - 2023-03-28
|
||||
### Fixed
|
||||
- JITM: Fix button overflow when text length is too big [#29749]
|
||||
@ -562,6 +641,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Update Jetpack to use new JITM package
|
||||
|
||||
[2.5.1]: https://github.com/Automattic/jetpack-jitm/compare/v2.5.0...v2.5.1
|
||||
[2.5.0]: https://github.com/Automattic/jetpack-jitm/compare/v2.4.0...v2.5.0
|
||||
[2.4.0]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.19...v2.4.0
|
||||
[2.3.19]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.18...v2.3.19
|
||||
[2.3.18]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.17...v2.3.18
|
||||
[2.3.17]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.16...v2.3.17
|
||||
[2.3.16]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.15...v2.3.16
|
||||
[2.3.15]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.14...v2.3.15
|
||||
[2.3.14]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.13...v2.3.14
|
||||
[2.3.13]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.12...v2.3.13
|
||||
[2.3.12]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.11...v2.3.12
|
||||
[2.3.11]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.10...v2.3.11
|
||||
[2.3.10]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.9...v2.3.10
|
||||
[2.3.9]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.8...v2.3.9
|
||||
[2.3.8]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.7...v2.3.8
|
||||
[2.3.7]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.6...v2.3.7
|
||||
[2.3.6]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.5...v2.3.6
|
||||
[2.3.5]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.4...v2.3.5
|
||||
[2.3.4]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.3...v2.3.4
|
||||
[2.3.3]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.2...v2.3.3
|
||||
[2.3.2]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.1...v2.3.2
|
||||
[2.3.1]: https://github.com/Automattic/jetpack-jitm/compare/v2.3.0...v2.3.1
|
||||
|
@ -4,11 +4,20 @@ Full details of the Automattic Security Policy can be found on [automattic.com](
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Generally, only the latest version of Jetpack has continued support. If a critical vulnerability is found in the current version of Jetpack, we may opt to backport any patches to previous versions.
|
||||
Generally, only the latest version of Jetpack and its associated plugins have continued support. If a critical vulnerability is found in the current version of a plugin, we may opt to backport any patches to previous versions.
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
[Jetpack](https://jetpack.com/) is an open-source plugin for WordPress. Our HackerOne program covers the plugin software, as well as a variety of related projects and infrastructure.
|
||||
Our HackerOne program covers the below plugin software, as well as a variety of related projects and infrastructure:
|
||||
|
||||
* [Jetpack](https://jetpack.com/)
|
||||
* Jetpack Backup
|
||||
* Jetpack Boost
|
||||
* Jetpack CRM
|
||||
* Jetpack Protect
|
||||
* Jetpack Search
|
||||
* Jetpack Social
|
||||
* Jetpack VideoPress
|
||||
|
||||
**For responsible disclosure of security issues and to be eligible for our bug bounty program, please submit your report via the [HackerOne](https://hackerone.com/automattic) portal.**
|
||||
|
||||
|
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => 'ef911dd8f37f702652eb');
|
||||
<?php return array('dependencies' => array('jquery', 'wp-polyfill'), 'version' => '76ec3c26b0b3d8144645');
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,19 +4,22 @@
|
||||
"type": "jetpack-library",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"require": {
|
||||
"automattic/jetpack-a8c-mc-stats": "^1.4.19",
|
||||
"automattic/jetpack-assets": "^1.17.34",
|
||||
"automattic/jetpack-connection": "^1.51.4",
|
||||
"automattic/jetpack-device-detection": "^1.4.24",
|
||||
"automattic/jetpack-logo": "^1.5.22",
|
||||
"automattic/jetpack-partner": "^1.7.22",
|
||||
"automattic/jetpack-redirect": "^1.7.24",
|
||||
"automattic/jetpack-status": "^1.16.3"
|
||||
"automattic/jetpack-a8c-mc-stats": "^1.4.22",
|
||||
"automattic/jetpack-assets": "^1.18.13",
|
||||
"automattic/jetpack-connection": "^1.58.2",
|
||||
"automattic/jetpack-device-detection": "^1.4.27",
|
||||
"automattic/jetpack-logo": "^1.6.3",
|
||||
"automattic/jetpack-partner": "^1.7.25",
|
||||
"automattic/jetpack-redirect": "^1.7.27",
|
||||
"automattic/jetpack-status": "^1.18.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"brain/monkey": "2.6.1",
|
||||
"yoast/phpunit-polyfills": "1.0.4",
|
||||
"automattic/jetpack-changelogger": "^3.3.2"
|
||||
"yoast/phpunit-polyfills": "1.1.0",
|
||||
"automattic/jetpack-changelogger": "^3.3.11"
|
||||
},
|
||||
"suggest": {
|
||||
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
@ -54,7 +57,7 @@
|
||||
"link-template": "https://github.com/Automattic/jetpack-jitm/compare/v${old}...v${new}"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-trunk": "2.3.x-dev"
|
||||
"dev-trunk": "2.5.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ use Automattic\Jetpack\Status;
|
||||
*/
|
||||
class JITM {
|
||||
|
||||
const PACKAGE_VERSION = '2.3.4';
|
||||
const PACKAGE_VERSION = '2.5.1';
|
||||
|
||||
/**
|
||||
* The configuration method that is called from the jetpack-config package.
|
||||
@ -156,6 +156,7 @@ class JITM {
|
||||
'activate_module_text' => esc_html__( 'Activate', 'jetpack-jitm' ),
|
||||
'activated_module_text' => esc_html__( 'Activated', 'jetpack-jitm' ),
|
||||
'activating_module_text' => esc_html__( 'Activating', 'jetpack-jitm' ),
|
||||
'settings_module_text' => esc_html__( 'Settings', 'jetpack-jitm' ),
|
||||
'nonce' => wp_create_nonce( 'wp_rest' ),
|
||||
)
|
||||
);
|
||||
@ -230,7 +231,7 @@ class JITM {
|
||||
.st0{clip-path:url(#SVGID_2_);enable-background:new ;}
|
||||
.st1{clip-path:url(#SVGID_4_);}
|
||||
.st2{clip-path:url(#SVGID_6_);}
|
||||
.st3{clip-path:url(#SVGID_8_);fill:#8F567F;}
|
||||
.st3{clip-path:url(#SVGID_8_);fill:#7F54B3;}
|
||||
.st4{clip-path:url(#SVGID_10_);fill:#FFFFFE;}
|
||||
.st5{clip-path:url(#SVGID_12_);fill:#FFFFFE;}
|
||||
.st6{clip-path:url(#SVGID_14_);fill:#FFFFFE;}
|
||||
|
@ -266,7 +266,7 @@ class Post_Connection_JITM extends JITM {
|
||||
array(
|
||||
'external_user_id' => urlencode_deep( $user->ID ),
|
||||
'user_roles' => urlencode_deep( $user_roles ),
|
||||
'query_string' => urlencode_deep( $query ),
|
||||
'query_string' => urlencode_deep( build_query( $query ) ),
|
||||
'mobile_browser' => Device_Detection::is_smartphone() ? 1 : 0,
|
||||
'_locale' => get_user_locale(),
|
||||
),
|
||||
@ -360,7 +360,8 @@ class Post_Connection_JITM extends JITM {
|
||||
$this->tracking->record_user_event(
|
||||
'jitm_view_client',
|
||||
array(
|
||||
'jitm_id' => $envelope->id,
|
||||
'jitm_id' => $envelope->id,
|
||||
'jitm_message_path' => $message_path,
|
||||
)
|
||||
);
|
||||
|
||||
@ -405,6 +406,7 @@ class Post_Connection_JITM extends JITM {
|
||||
}
|
||||
|
||||
$envelope->content->icon = $this->generate_icon( $envelope->content->icon, $full_jp_logo_exists );
|
||||
$envelope->message_path = esc_attr( $message_path );
|
||||
|
||||
$stats->add( 'jitm', $envelope->id . '-viewed' );
|
||||
$stats->do_server_side_stats();
|
||||
@ -412,5 +414,4 @@ class Post_Connection_JITM extends JITM {
|
||||
|
||||
return $envelopes;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -55,7 +55,13 @@ class Rest_Api_Endpoints {
|
||||
return array();
|
||||
}
|
||||
|
||||
return $jitm->get_messages( $request['message_path'], urldecode_deep( $request['query'] ), 'true' === $request['full_jp_logo_exists'] ? true : false );
|
||||
// add the search term to the query params if it exists
|
||||
$query = $request['query'];
|
||||
if ( ! empty( $request['s'] ) ) {
|
||||
$query['s'] = $request['s'];
|
||||
}
|
||||
|
||||
return $jitm->get_messages( $request['message_path'], urldecode_deep( $query ), 'true' === $request['full_jp_logo_exists'] ? true : false );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -87,5 +93,4 @@ class Rest_Api_Endpoints {
|
||||
|
||||
return new \WP_Error( 'invalid_user_permission_jetpack_delete_jitm_message', REST_Connector::get_user_permissions_error_msg(), array( 'status' => rest_authorization_required_code() ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -33,6 +33,7 @@
|
||||
// New JITMS - modified calypso banner styles
|
||||
$blue-medium-dark: #2271b1;
|
||||
$jp-gray: #dcdcde;
|
||||
$jp-gray-0: #f6f7f7;
|
||||
$jp-gray-20: #a7aaad;
|
||||
|
||||
.jitm-button {
|
||||
@ -64,6 +65,23 @@ $jp-gray-20: #a7aaad;
|
||||
&.is-primary {
|
||||
background: black;
|
||||
color: $white;
|
||||
.gridicons-external-link {
|
||||
fill: $white;
|
||||
}
|
||||
}
|
||||
|
||||
// Secondary buttons
|
||||
&.is-secondary {
|
||||
.gridicons-external-link {
|
||||
fill: black;
|
||||
}
|
||||
&:hover{
|
||||
color: black;
|
||||
background: $jp-gray-0;
|
||||
.gridicons-external-link {
|
||||
fill: black;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover,
|
||||
@ -107,6 +125,11 @@ $jp-gray-20: #a7aaad;
|
||||
.gridicons-plus-small + .gridicon {
|
||||
margin-left: -4px;
|
||||
}
|
||||
|
||||
// Properly align icon with the button text
|
||||
.gridicons-external-link {
|
||||
margin: -3px 0 -3px 2px;
|
||||
}
|
||||
}
|
||||
&.hidden {
|
||||
display: none;
|
||||
|
Reference in New Issue
Block a user