| @@ -936,8 +936,14 @@ | ||
| 936 | 936 | // whether the editor's recipient field is editable. Approximated with |
| 937 | 937 | // manage_options so editors, who can only test-send to themselves, |
| 938 | 938 | // aren't shown an editable field that would always be rejected. |
| 939 | 939 | 'can_send_test_email_to_others' => current_user_can( 'manage_options' ), |
| 940 | + // Which settings-driven subscribe placements are on, for the Site Editor's admin-only notice. | |
| 941 | + 'subscribe_placements' => current_user_can( 'manage_options' ) ? array( | |
| 942 | + 'sm_enabled' => (bool) get_option( 'sm_enabled', false ), | |
| 943 | + 'jetpack_subscribe_overlay_enabled' => (bool) get_option( 'jetpack_subscribe_overlay_enabled', false ), | |
| 944 | + 'jetpack_subscribe_floating_button_enabled' => (bool) get_option( 'jetpack_subscribe_floating_button_enabled', false ), | |
| 945 | + ) : null, | |
| 940 | 946 | // this is the equivalent of JP initial state siteData.showMyJetpack (class-jetpack-redux-state-helper) |
| 941 | 947 | // used to determine if we can link to My Jetpack from the block editor |
| 942 | 948 | 'is_my_jetpack_available' => My_Jetpack_Initializer::should_initialize(), |
| 943 | 949 | 'jetpack_plan' => array( |