Skip to content

Commit

Permalink
Revert "Blocks: Ensure that metadata registered on the server for cor…
Browse files Browse the repository at this point in the history
…e block is preserved on the client (#29213)" (#29279)

This reverts commit 2a55b96.
  • Loading branch information
gwwar authored Feb 24, 2021
1 parent 0596f1b commit 535ac5b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
5 changes: 0 additions & 5 deletions packages/blocks/src/api/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,6 @@ export const serverSideBlockDefinitions = {};
// eslint-disable-next-line camelcase
export function unstable__bootstrapServerSideBlockDefinitions( definitions ) {
for ( const blockName of Object.keys( definitions ) ) {
// Don't overwrite if already set. It covers the case when metadata
// was initialized from the server.
if ( serverSideBlockDefinitions[ blockName ] ) {
continue;
}
serverSideBlockDefinitions[ blockName ] = mapKeys(
pickBy( definitions[ blockName ], ( value ) => ! isNil( value ) ),
( value, key ) => camelCase( key )
Expand Down
28 changes: 0 additions & 28 deletions packages/e2e-tests/plugins/register-block-type-hooks.php

This file was deleted.

This file was deleted.

0 comments on commit 535ac5b

Please sign in to comment.