Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit bec6ed8

Browse files
committed
Comment out registerFeaturePluginBlockType
1 parent f21be3b commit bec6ed8

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

assets/js/settings/blocks/feature-flags.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ export const registerExperimentalBlockType = (
2323
}
2424
};
2525

26-
/**
27-
* Registers a new feature plugin block provided a unique name and an object
28-
* defining its behavior. Once registered, the block is made available as an
29-
* option to any editor interface where blocks are implemented.
30-
*/
31-
export const registerFeaturePluginBlockType = (
32-
blockNameOrMetadata: string | BlockConfiguration,
33-
settings: Record< string, unknown >
34-
): Block | undefined => {
35-
if ( WC_BLOCKS_PHASE > 1 ) {
36-
return registerBlockType( blockNameOrMetadata, settings );
37-
}
38-
};
26+
// This code is being kept in case we add a feature-plugin-only block in future. It will be easy to reinstate.
27+
// /**
28+
// * Registers a new feature plugin block provided a unique name and an object
29+
// * defining its behavior. Once registered, the block is made available as an
30+
// * option to any editor interface where blocks are implemented.
31+
// */
32+
// export const registerFeaturePluginBlockType = (
33+
// blockNameOrMetadata: string | BlockConfiguration,
34+
// settings: Record< string, unknown >
35+
// ): Block | undefined => {
36+
// if ( WC_BLOCKS_PHASE > 1 ) {
37+
// return registerBlockType( blockNameOrMetadata, settings );
38+
// }
39+
// };
3940

4041
/**
4142
* Checks if we're executing the code in an experimental build mode.

0 commit comments

Comments
 (0)