Skip to content

Commit

Permalink
Fix/standalone installation for all products (#35399)
Browse files Browse the repository at this point in the history
* Add product specific activation for backup

* changelog

* Remove custom active plugin check from Hybrid_Product

* Update version

* Update lockfiles

* Remove outdated comment
  • Loading branch information
CodeyGuyDylan authored Feb 2, 2024
1 parent b493b7d commit a9cd697
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fixed

Fix issue where most products are not installing their standalone product upon purchase
13 changes: 0 additions & 13 deletions projects/packages/my-jetpack/src/products/class-hybrid-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
* 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.
*
* In case Jetpack plugin is active, it will not attempt to install its stand-alone plugin.
*
* But if Jetpack plugin is not active, then it will prompt to install and activate its stand-alone plugin.
*/
abstract class Hybrid_Product extends Product {

Expand Down Expand Up @@ -47,15 +43,6 @@ public static function is_standalone_plugin_active() {
return parent::is_plugin_active();
}

/**
* Checks whether the plugin is installed
*
* @return boolean
*/
public static function is_plugin_installed() {
return parent::is_plugin_installed() || static::is_jetpack_plugin_installed();
}

/**
* Checks whether the Jetpack module is active only if a module_name is defined
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


0 comments on commit a9cd697

Please sign in to comment.