← All changes
|
_inc/lib/admin-pages/class-jetpack-redux-state-helper.php
+4
-0
16.3-a.5
→
16.3
View file →
| @@ -6,8 +6,10 @@ | ||
| 6 | 6 | * @package automattic/jetpack |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | use Automattic\Jetpack\Blaze; |
| 10 | +use Automattic\Jetpack\Comments\Block_Editor; | |
| 11 | +use Automattic\Jetpack\Comments\Comments; | |
| 10 | 12 | use Automattic\Jetpack\Connection\Manager as Connection_Manager; |
| 11 | 13 | use Automattic\Jetpack\Connection\Plugin_Storage as Connection_Plugin_Storage; |
| 12 | 14 | use Automattic\Jetpack\Connection\REST_Connector; |
| 13 | 15 | use Automattic\Jetpack\Constants; |
| @@ -207,8 +209,10 @@ | ||
| 207 | 209 | 'isSharingBlockAvailable' => isset( $block_availability['sharing-buttons'] ) |
| 208 | 210 | && $block_availability['sharing-buttons']['available'], |
| 209 | 211 | 'isLikeBlockAvailable' => isset( $block_availability['like'] ) |
| 210 | 212 | && $block_availability['like']['available'], |
| 213 | + // The rebuilt comment form is what offers blocks; the package may lag this file on a staged deploy. | |
| 214 | + 'isCommentBlocksAvailable' => class_exists( Block_Editor::class ) && Comments::is_enabled(), | |
| 211 | 215 | ), |
| 212 | 216 | 'themeData' => array( |
| 213 | 217 | 'name' => $current_theme->get( 'Name' ), |
| 214 | 218 | 'stylesheet' => $current_theme->get_stylesheet(), |