Skip to content

Commit

Permalink
Also deregister value
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 24, 2022
1 parent 8410b67 commit f2b736f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-library/src/quote/v2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function registerQuoteV2Attributes( blockSettings, blockName ) {
return blockSettings;
}

// Register the new attribute.
Object.assign( blockSettings.attributes, {
attribution: {
type: 'string',
Expand All @@ -58,6 +59,9 @@ function registerQuoteV2Attributes( blockSettings, blockName ) {
__experimentalRole: 'content',
},
} );

// Deregister the old ones.
delete blockSettings.attributes.value;
delete blockSettings.attributes.citation;

return blockSettings;
Expand Down

0 comments on commit f2b736f

Please sign in to comment.