Skip to content

Commit

Permalink
Use placeholders instead of content
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Aug 2, 2023
1 parent 1c65e74 commit 8638dff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/hooks/custom-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const withInspectorControl = createHigherOrderComponent(
props.setAttributes( {
connections: undefined,
content: undefined,
placeholder: undefined,
} );
} else {
props.setAttributes( {
Expand All @@ -91,7 +92,8 @@ export const withInspectorControl = createHigherOrderComponent(
},
},
},
content: sprintf(
content: undefined,
placeholder: sprintf(
'This content will be replaced in the frontend by the custom field "%s" value.',
nextValue
),
Expand Down

0 comments on commit 8638dff

Please sign in to comment.