updated plugin Jetpack Protect
version 1.3.0
This commit is contained in:
@ -5,6 +5,78 @@ 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.7.13] - 2023-03-07
|
||||
### Changed
|
||||
- Updated package dependencies. [#29289]
|
||||
|
||||
## [2.7.12] - 2023-02-28
|
||||
### Changed
|
||||
- Update billing language [#29126]
|
||||
|
||||
## [2.7.11] - 2023-02-20
|
||||
### Fixed
|
||||
- My Jetpack: Fix button to add bundle in product interstitial component [#28984]
|
||||
|
||||
## [2.7.10] - 2023-02-15
|
||||
### Changed
|
||||
- Update to React 18. [#28710]
|
||||
|
||||
## [2.7.9] - 2023-02-08
|
||||
### Changed
|
||||
- Updated package dependencies. [#28682, #28700]
|
||||
|
||||
## [2.7.8] - 2023-02-06
|
||||
### Changed
|
||||
- Updated package dependencies.
|
||||
|
||||
## [2.7.7] - 2023-01-26
|
||||
### Changed
|
||||
- Use `flex-start` instead of `start` for better browser compatibility. [#28530]
|
||||
|
||||
## [2.7.6] - 2023-01-25
|
||||
### Changed
|
||||
- Minor internal updates.
|
||||
|
||||
## [2.7.5] - 2023-01-23
|
||||
### Fixed
|
||||
- Components: Fix usage of box-sizing across the elements [#28489]
|
||||
- Fixes the price display for products with intro offers for the first month. [#28424]
|
||||
|
||||
## [2.7.4] - 2023-01-16
|
||||
### Changed
|
||||
- Updated package dependencies. [#28303]
|
||||
|
||||
## [2.7.3] - 2023-01-11
|
||||
### Changed
|
||||
- Updated package dependencies.
|
||||
|
||||
## [2.7.2] - 2023-01-02
|
||||
### Added
|
||||
- My Jetpack: Move VideoPress from Hybrid [#28097]
|
||||
|
||||
### Changed
|
||||
- My Jetpack: Move Search out of hybrid and deprecate Hybrid_Product class [#28113]
|
||||
|
||||
## [2.7.1] - 2022-12-27
|
||||
### Changed
|
||||
- Fix layout visual issues [#28055]
|
||||
- My Jetpack: Move Backup out of hybrid product [#28022]
|
||||
- My Jetpack: Move Social out of hybrid product [#28074]
|
||||
|
||||
## [2.7.0] - 2022-12-19
|
||||
### Added
|
||||
- Implement detached licenses redux store. [#27609]
|
||||
|
||||
### Changed
|
||||
- Updated package dependencies. [#27916]
|
||||
|
||||
### Fixed
|
||||
- Add translation context to Security product name. [#27920]
|
||||
|
||||
## [2.6.1] - 2022-12-12
|
||||
### Changed
|
||||
- Updated package dependencies. [#27888]
|
||||
|
||||
## [2.6.0] - 2022-12-05
|
||||
### Changed
|
||||
- Improve design of the error notice. [#27340]
|
||||
@ -690,6 +762,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Added
|
||||
- Created package
|
||||
|
||||
[2.7.13]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.12...2.7.13
|
||||
[2.7.12]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.11...2.7.12
|
||||
[2.7.11]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.10...2.7.11
|
||||
[2.7.10]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.9...2.7.10
|
||||
[2.7.9]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.8...2.7.9
|
||||
[2.7.8]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.7...2.7.8
|
||||
[2.7.7]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.6...2.7.7
|
||||
[2.7.6]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.5...2.7.6
|
||||
[2.7.5]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.4...2.7.5
|
||||
[2.7.4]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.3...2.7.4
|
||||
[2.7.3]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.2...2.7.3
|
||||
[2.7.2]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.1...2.7.2
|
||||
[2.7.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.7.0...2.7.1
|
||||
[2.7.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.6.1...2.7.0
|
||||
[2.6.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.6.0...2.6.1
|
||||
[2.6.0]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.5.2...2.6.0
|
||||
[2.5.2]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.5.1...2.5.2
|
||||
[2.5.1]: https://github.com/Automattic/jetpack-my-jetpack/compare/2.5.0...2.5.1
|
||||
|
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '813aee29e3796bd68b53');
|
||||
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f9d5720dee05c77d6f54');
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* React Router DOM v6.2.2
|
||||
* @remix-run/router v1.2.1
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
*
|
||||
@ -24,7 +24,18 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* React Router v6.2.2
|
||||
* React Router DOM v6.6.2
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
* React Router v6.6.2
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
*
|
||||
|
File diff suppressed because one or more lines are too long
@ -4,19 +4,20 @@
|
||||
"type": "jetpack-library",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"require": {
|
||||
"automattic/jetpack-admin-ui": "^0.2.14",
|
||||
"automattic/jetpack-assets": "^1.17.28",
|
||||
"automattic/jetpack-connection": "^1.47.1",
|
||||
"automattic/jetpack-jitm": "^2.2.35",
|
||||
"automattic/jetpack-licensing": "^1.7.13",
|
||||
"automattic/jetpack-plugins-installer": "^0.2.2",
|
||||
"automattic/jetpack-redirect": "^1.7.21",
|
||||
"automattic/jetpack-constants": "^1.6.20"
|
||||
"automattic/jetpack-admin-ui": "^0.2.17",
|
||||
"automattic/jetpack-assets": "^1.17.33",
|
||||
"automattic/jetpack-connection": "^1.51.1",
|
||||
"automattic/jetpack-jitm": "^2.3.1",
|
||||
"automattic/jetpack-licensing": "^1.8.1",
|
||||
"automattic/jetpack-plugins-installer": "^0.2.3",
|
||||
"automattic/jetpack-redirect": "^1.7.24",
|
||||
"automattic/jetpack-constants": "^1.6.21"
|
||||
},
|
||||
"require-dev": {
|
||||
"yoast/phpunit-polyfills": "1.0.4",
|
||||
"automattic/jetpack-changelogger": "^3.2.2",
|
||||
"automattic/wordbless": "@dev"
|
||||
"automattic/jetpack-changelogger": "^3.3.2",
|
||||
"automattic/wordbless": "@dev",
|
||||
"automattic/jetpack-videopress": "^0.11.1"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
@ -28,10 +29,6 @@
|
||||
"phpunit": [
|
||||
"./vendor/phpunit/phpunit/phpunit --colors=always"
|
||||
],
|
||||
"test-coverage": [
|
||||
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/coverage.xml\"",
|
||||
"pnpm run test --coverageDirectory=\"$COVERAGE_DIR\" --coverage --coverageReporters=clover"
|
||||
],
|
||||
"test-php": [
|
||||
"@composer phpunit"
|
||||
],
|
||||
@ -65,7 +62,7 @@
|
||||
"link-template": "https://github.com/Automattic/jetpack-my-jetpack/compare/${old}...${new}"
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-trunk": "2.6.x-dev"
|
||||
"dev-trunk": "2.7.x-dev"
|
||||
},
|
||||
"version-constants": {
|
||||
"::PACKAGE_VERSION": "src/class-initializer.php"
|
||||
|
@ -30,7 +30,7 @@ class Initializer {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const PACKAGE_VERSION = '2.6.0';
|
||||
const PACKAGE_VERSION = '2.7.13';
|
||||
|
||||
/**
|
||||
* Initialize My Jetpack
|
||||
|
@ -142,7 +142,6 @@ class Wpcom_Products {
|
||||
|
||||
self::update_cache( $products );
|
||||
return $products;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -175,11 +174,13 @@ class Wpcom_Products {
|
||||
$cost = $product->cost;
|
||||
$discount_price = $cost;
|
||||
$is_introductory_offer = false;
|
||||
$introductory_offer = null;
|
||||
|
||||
// Get/compute the discounted price.
|
||||
if ( isset( $product->introductory_offer->cost_per_interval ) ) {
|
||||
$discount_price = $product->introductory_offer->cost_per_interval;
|
||||
$is_introductory_offer = true;
|
||||
$introductory_offer = $product->introductory_offer;
|
||||
}
|
||||
|
||||
$pricing = array(
|
||||
@ -187,6 +188,7 @@ class Wpcom_Products {
|
||||
'full_price' => $cost,
|
||||
'discount_price' => $discount_price,
|
||||
'is_introductory_offer' => $is_introductory_offer,
|
||||
'introductory_offer' => $introductory_offer,
|
||||
);
|
||||
|
||||
return self::populate_with_discount( $product, $pricing, $discount_price );
|
||||
|
@ -8,7 +8,7 @@
|
||||
namespace Automattic\Jetpack\My_Jetpack\Products;
|
||||
|
||||
use Automattic\Jetpack\Connection\Client;
|
||||
use Automattic\Jetpack\My_Jetpack\Hybrid_Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Wpcom_Products;
|
||||
use Automattic\Jetpack\Redirect;
|
||||
use Jetpack_Options;
|
||||
@ -17,7 +17,7 @@ use WP_Error;
|
||||
/**
|
||||
* Class responsible for handling the Backup product
|
||||
*/
|
||||
class Backup extends Hybrid_Product {
|
||||
class Backup extends Product {
|
||||
|
||||
/**
|
||||
* The product slug
|
||||
@ -198,9 +198,7 @@ class Backup extends Hybrid_Product {
|
||||
* @return ?string
|
||||
*/
|
||||
public static function get_manage_url() {
|
||||
if ( static::is_jetpack_plugin_active() ) {
|
||||
return Redirect::get_url( 'my-jetpack-manage-backup' );
|
||||
} elseif ( static::is_plugin_active() ) {
|
||||
if ( static::is_plugin_active() ) {
|
||||
return admin_url( 'admin.php?page=jetpack-backup' );
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,13 @@ use Automattic\Jetpack\Plugins_Installer;
|
||||
use WP_Error;
|
||||
|
||||
/**
|
||||
*
|
||||
* DEPRECATED: This class is deprecated and will be removed in a future version.
|
||||
*
|
||||
* All product classes have been moved out of the hybrid class concept
|
||||
*
|
||||
* @deprecated 2.7.2
|
||||
*
|
||||
* Class responsible for handling the hybrid products
|
||||
*
|
||||
* Hybrid products are those that may work both as a stand-alone plugin or with the Jetpack plugin.
|
||||
@ -120,7 +127,6 @@ abstract class Hybrid_Product extends Product {
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -116,7 +116,6 @@ abstract class Module_Product extends Product {
|
||||
}
|
||||
|
||||
return $module_activation;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -403,7 +403,6 @@ abstract class Product {
|
||||
$result = apply_filters( "my_jetpack_{$product_slug}_activation", $result );
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -174,7 +174,6 @@ class Scan extends Module_Product {
|
||||
}
|
||||
|
||||
return $product_activation;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -9,7 +9,7 @@ namespace Automattic\Jetpack\My_Jetpack\Products;
|
||||
|
||||
use Automattic\Jetpack\Connection\Client;
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\Jetpack\My_Jetpack\Hybrid_Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Wpcom_Products;
|
||||
use Automattic\Jetpack\Search\Module_Control as Search_Module_Control;
|
||||
use Jetpack_Options;
|
||||
@ -18,7 +18,7 @@ use WP_Error;
|
||||
/**
|
||||
* Class responsible for handling the Search product
|
||||
*/
|
||||
class Search extends Hybrid_Product {
|
||||
class Search extends Product {
|
||||
/**
|
||||
* The product slug
|
||||
*
|
||||
|
@ -38,7 +38,7 @@ class Security extends Module_Product {
|
||||
* @return string
|
||||
*/
|
||||
public static function get_name() {
|
||||
return __( 'Security', 'jetpack-my-jetpack' );
|
||||
return _x( 'Security', 'Jetpack product name', 'jetpack-my-jetpack' );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ class Security extends Module_Product {
|
||||
* @return string
|
||||
*/
|
||||
public static function get_title() {
|
||||
return __( 'Security', 'jetpack-my-jetpack' );
|
||||
return _x( 'Security', 'Jetpack product name', 'jetpack-my-jetpack' );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -149,7 +149,6 @@ class Security extends Module_Product {
|
||||
}
|
||||
|
||||
return $activation;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -7,13 +7,13 @@
|
||||
|
||||
namespace Automattic\Jetpack\My_Jetpack\Products;
|
||||
|
||||
use Automattic\Jetpack\My_Jetpack\Hybrid_Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Wpcom_Products;
|
||||
|
||||
/**
|
||||
* Class responsible for handling the Social product
|
||||
*/
|
||||
class Social extends Hybrid_Product {
|
||||
class Social extends Product {
|
||||
|
||||
/**
|
||||
* The product slug
|
||||
@ -126,9 +126,7 @@ class Social extends Hybrid_Product {
|
||||
* @return string
|
||||
*/
|
||||
public static function get_manage_url() {
|
||||
if ( static::is_jetpack_plugin_active() ) {
|
||||
return admin_url( 'admin.php?page=jetpack#/settings?term=publicize' );
|
||||
} elseif ( static::is_plugin_active() ) {
|
||||
if ( static::is_plugin_active() ) {
|
||||
return admin_url( 'admin.php?page=jetpack-social' );
|
||||
}
|
||||
}
|
||||
|
@ -7,13 +7,13 @@
|
||||
|
||||
namespace Automattic\Jetpack\My_Jetpack\Products;
|
||||
|
||||
use Automattic\Jetpack\My_Jetpack\Hybrid_Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Product;
|
||||
use Automattic\Jetpack\My_Jetpack\Wpcom_Products;
|
||||
|
||||
/**
|
||||
* Class responsible for handling the VideoPress product
|
||||
*/
|
||||
class Videopress extends Hybrid_Product {
|
||||
class Videopress extends Product {
|
||||
|
||||
/**
|
||||
* The product slug
|
||||
@ -145,8 +145,6 @@ class Videopress extends Hybrid_Product {
|
||||
public static function get_manage_url() {
|
||||
if ( method_exists( 'Automattic\Jetpack\VideoPress\Initializer', 'should_initialize_admin_ui' ) && \Automattic\Jetpack\VideoPress\Initializer::should_initialize_admin_ui() ) {
|
||||
return \Automattic\Jetpack\VideoPress\Admin_UI::get_admin_page_url();
|
||||
} else {
|
||||
return admin_url( 'admin.php?page=jetpack#/settings?term=videopress' );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user