← All changes
|
extensions/blocks/subscriber-login/class-jetpack-subscription-site.php
+2
-4
13.4.5
→
16.3-beta
View file →
| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Adds support for Jetpack Subscription Site feature. |
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | - * @since $$next_version$$ | |
| 6 | + * @since 13.3 | |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | namespace Automattic\Jetpack\Extensions\Subscriber_Login; |
| 10 | 10 | |
| @@ -66,16 +66,14 @@ | ||
| 66 | 66 | * |
| 67 | 67 | * @return void |
| 68 | 68 | */ |
| 69 | 69 | protected function handle_subscriber_login_block_navigation_placement() { |
| 70 | - global $wp_version; | |
| 71 | - | |
| 72 | 70 | $subscriber_login_navigation_enabled = get_option( 'jetpack_subscriptions_login_navigation_enabled', false ); |
| 73 | 71 | if ( ! $subscriber_login_navigation_enabled ) { |
| 74 | 72 | return; |
| 75 | 73 | } |
| 76 | 74 | |
| 77 | - if ( ! wp_is_block_theme() || version_compare( $wp_version, '6.5-beta2', '<' ) ) { // TODO Fallback for classic themes and wp core < 6.5-beta2. | |
| 75 | + if ( ! wp_is_block_theme() ) { // TODO Fallback for classic themes. | |
| 78 | 76 | return; |
| 79 | 77 | } |
| 80 | 78 | |
| 81 | 79 | add_filter( |