-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/shield memberships blocks for unconnected jetpack sites (#39390)
* Do not register memberships buttons when site is not available Use of Jetpack_Memberships::is_enabled_jetpack_recurring_payments() * Create add-shield-memberships-blocks-for-unconnected-jetpack-sites * Introduce should_enable_monetize_blocks_in_editor * Use manager * Replace ( defined( 'IS_WPCOM' ) && IS_WPCOM ) with ( new Host() )->is_wpcom_simple() * Use $is_offline_mode * return is_enabled_jetpack_recurring_payments() in front-end * Update add-shield-memberships-blocks-for-unconnected-jetpack-sites * Prevent paid-content to be displayed if the site is not connected
- Loading branch information
Showing
6 changed files
with
58 additions
and
26 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...cts/plugins/jetpack/changelog/add-shield-memberships-blocks-for-unconnected-jetpack-sites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: bugfix | ||
|
||
[In administration] Do not register Memberships blocks when the site is not connected to Jetpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters