|
119 | 119 | 'rss_use_excerpt' => '(bool) Whether the RSS feed will use post excerpts',
|
120 | 120 | 'launchpad_screen' => '(string) Whether or not launchpad is presented and what size it will be',
|
121 | 121 | 'sm_enabled' => '(bool) Whether the newsletter subscribe modal is enabled',
|
| 122 | + 'jetpack_subscriptions_subscribe_post_end_enabled' => '(bool) Whether the subscribe block at the end of each post is enabled', |
122 | 123 | 'wpcom_ai_site_prompt' => '(string) User input in the AI site prompt',
|
123 | 124 | ),
|
124 | 125 |
|
@@ -452,6 +453,7 @@ function ( $newsletter_category ) {
|
452 | 453 | 'wpcom_newsletter_categories' => $newsletter_category_ids,
|
453 | 454 | 'wpcom_newsletter_categories_enabled' => (bool) get_option( 'wpcom_newsletter_categories_enabled' ),
|
454 | 455 | 'sm_enabled' => (bool) get_option( 'sm_enabled' ),
|
| 456 | + 'jetpack_subscriptions_subscribe_post_end_enabled' => (bool) get_option( 'jetpack_subscriptions_subscribe_post_end_enabled' ), |
455 | 457 | 'wpcom_gifting_subscription' => (bool) get_option( 'wpcom_gifting_subscription', $this->get_wpcom_gifting_subscription_default() ),
|
456 | 458 | 'wpcom_reader_views_enabled' => (bool) get_option( 'wpcom_reader_views_enabled', true ),
|
457 | 459 | 'wpcom_subscription_emails_use_excerpt' => $this->get_wpcom_subscription_emails_use_excerpt_option(),
|
@@ -1084,6 +1086,11 @@ function ( $category_id ) {
|
1084 | 1086 | $updated[ $key ] = (int) (bool) $value;
|
1085 | 1087 | break;
|
1086 | 1088 |
|
| 1089 | + case 'jetpack_subscriptions_subscribe_post_end_enabled': |
| 1090 | + update_option( 'jetpack_subscriptions_subscribe_post_end_enabled', (int) (bool) $value ); |
| 1091 | + $updated[ $key ] = (int) (bool) $value; |
| 1092 | + break; |
| 1093 | + |
1087 | 1094 | case 'show_on_front':
|
1088 | 1095 | if ( in_array( $value, array( 'page', 'posts' ), true ) && update_option( $key, $value ) ) {
|
1089 | 1096 | $updated[ $key ] = $value;
|
|
0 commit comments