| @@ -13,8 +13,9 @@ | ||
| 13 | 13 | * @package automattic/jetpack |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | use Automattic\Jetpack\Assets; |
| 17 | +use Automattic\Jetpack\Sharing_Likes\Post_Likes_Switch; | |
| 17 | 18 | |
| 18 | 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | 20 | exit( 0 ); |
| 20 | 21 | } |
| @@ -245,6 +246,9 @@ | ||
| 245 | 246 | |
| 246 | 247 | return $content . $like_button; |
| 247 | 248 | } |
| 248 | 249 | } |
| 250 | + | |
| 251 | +// Comment likes follow the per-post Likes switch, so the block editor needs it without the Likes module. | |
| 252 | +Post_Likes_Switch::init(); | |
| 249 | 253 | |
| 250 | 254 | Jetpack_Comment_Likes::init(); |