diff --git a/extensions/shared/register-jetpack-block.js b/extensions/shared/register-jetpack-block.js index 06bbd9263163a..24fe4efda95ad 100644 --- a/extensions/shared/register-jetpack-block.js +++ b/extensions/shared/register-jetpack-block.js @@ -45,9 +45,7 @@ export default function registerJetpackBlock( name, settings, childBlocks = [] ) const result = registerBlockType( `jetpack/${ name }`, { ...settings, title: betaExtensions.includes( name ) ? `${ settings.title } (beta)` : settings.title, - edit: requiredPlan - ? wrapPaidBlock( { feature: details.required_feature, requiredPlan } )( settings.edit ) - : settings.edit, + edit: requiredPlan ? wrapPaidBlock( { requiredPlan } )( settings.edit ) : settings.edit, } ); // Register child blocks. Using `registerBlockType()` directly avoids availability checks -- if diff --git a/extensions/shared/upgrade-nudge/index.jsx b/extensions/shared/upgrade-nudge/index.jsx index b88b97cdc7b5f..320514e772385 100644 --- a/extensions/shared/upgrade-nudge/index.jsx +++ b/extensions/shared/upgrade-nudge/index.jsx @@ -1,7 +1,7 @@ /** * External dependencies */ -import { get } from 'lodash'; +import { get, startsWith } from 'lodash'; import { __, sprintf } from '@wordpress/i18n'; import { addQueryArgs } from '@wordpress/url'; import { Button } from '@wordpress/components'; @@ -16,7 +16,7 @@ import './store'; import './style.scss'; -const UpgradeNudge = ( { feature, plan, planName } ) => ( +const UpgradeNudge = ( { planName, planPathSlug, postId, postType } ) => (