Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Classic block: Allow sites with the enable-classic-block-inserter-support sticker to insert the Classic block.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public static function init() {
// Filter to populate JetpackScriptData.site.wpcom.blog_id with the actual WP.com blog ID.
add_filter( 'jetpack_admin_js_script_data', array( __CLASS__, 'set_wpcom_blog_id_script_data' ), 10, 1 );

// Allow sites with the `classic-block-inserter-support` blog sticker to insert the Classic block.
if ( wpcom_has_blog_sticker( 'classic-block-inserter-support', get_wpcom_blog_id() ) ) {
add_filter( 'wp_classic_block_supports_inserter', '__return_true' );
}

/**
* Runs right after the Jetpack_Mu_Wpcom package is initialized.
*
Expand Down
Loading