diff --git a/packages/block-library/src/embed/util.js b/packages/block-library/src/embed/util.js index 747c371a7cfde..35d46b330da4b 100644 --- a/packages/block-library/src/embed/util.js +++ b/packages/block-library/src/embed/util.js @@ -102,9 +102,9 @@ export const createUpgradedEmbedBlock = ( // WordPress blocks can work on multiple sites, and so don't have patterns, // so if we're in a WordPress block, assume the user has chosen it for a WordPress URL. const isCurrentBlockWP = - ( WP_VARIATION && - providerNameSlug === WP_VARIATION.attributes.providerNameSlug ) || - type === WP_EMBED_TYPE; + WP_VARIATION && // Is the WordPress variation of the embed block registered? + ( providerNameSlug === WP_VARIATION.attributes.providerNameSlug || + type === WP_EMBED_TYPE ); // if current block is not WordPress and a more suitable block found // that is different from the current one, create the new matched block const shouldCreateNewBlock =