Skip to content

Commit

Permalink
Added deprecation artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Sep 10, 2018
1 parent d71a0cc commit 10feb74
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/block-library/src/pullquote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ export const settings = {
},

deprecated: [ {
attributes: {
...blockAttributes,
},
save( { attributes } ) {
const { value, citation } = attributes;
return (
<blockquote>
<RichText.Content value={ toRichTextValue( value ) } />
{ ! RichText.isEmpty( citation ) && <RichText.Content tagName="cite" value={ citation } /> }
</blockquote>
);
},
}, {
attributes: {
...blockAttributes,
citation: {
Expand Down

0 comments on commit 10feb74

Please sign in to comment.