Skip to content

Commit

Permalink
Update Jetpack submodule reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Siobhan committed Feb 8, 2023
1 parent 49dbab3 commit c4f8198
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jetpack
Submodule jetpack updated 2256 files
9 changes: 8 additions & 1 deletion src/jetpack-editor-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const supportedJetpackBlocks = {
'tiled-gallery': {
available: __DEV__,
},
'videopress/video': {
available: __DEV__,
},
};

const setJetpackData = ( {
Expand Down Expand Up @@ -85,8 +88,10 @@ export function registerJetpackBlocks( { capabilities } ) {
capabilities.tiledGalleryBlock,
'jetpack/tiled-gallery'
);
hideBlockByCapability( capabilities.videoPressBlock, 'videopress/video' );

// Register Jetpack blocks
require( '../jetpack/projects/packages/videopress/src/client/block-editor/editor' );
require( '../jetpack/projects/plugins/jetpack/extensions/editor' );
}

Expand Down Expand Up @@ -157,7 +162,9 @@ const setupStringsOverrides = () => {
( name ) => `jetpack/${ name }`
);

if ( onlyCoreBlocks && jetpackBlockNames.includes( blockName ) ) {
const videoPressBlock = blockName === 'videopress/video';

if ( onlyCoreBlocks && jetpackBlockNames.includes( blockName ) && videoPressBlock ) {
return null;
}
return defaultValue;
Expand Down

0 comments on commit c4f8198

Please sign in to comment.