diff --git a/packages/block-editor/src/components/rich-text/index.js b/packages/block-editor/src/components/rich-text/index.js index ed53270b679f7a..732b8dbf2c089c 100644 --- a/packages/block-editor/src/components/rich-text/index.js +++ b/packages/block-editor/src/components/rich-text/index.js @@ -334,7 +334,7 @@ export function RichTextWrapper( selectionStart, selectionEnd, onSelectionChange, - placeholder: placeholder || bindingsPlaceholder, + placeholder: bindingsPlaceholder || placeholder, __unstableIsSelected: isSelected, __unstableDisableFormats: disableFormats, preserveWhiteSpace, @@ -406,7 +406,7 @@ export function RichTextWrapper( aria-readonly={ shouldDisableEditing } { ...props } aria-label={ - props[ 'aria-label' ] || placeholder || bindingsPlaceholder + bindingsPlaceholder || props[ 'aria-label' ] || placeholder } { ...autocompleteProps } ref={ useMergeRefs( [ diff --git a/packages/editor/src/bindings/post-meta.js b/packages/editor/src/bindings/post-meta.js index 3cd8879de13f0f..6dc0af8631e02b 100644 --- a/packages/editor/src/bindings/post-meta.js +++ b/packages/editor/src/bindings/post-meta.js @@ -71,7 +71,7 @@ export default { for ( const [ attributeName, source ] of Object.entries( bindings ) ) { // Use the key if the value is not set. newValues[ attributeName ] = - metaFields?.[ source.args.key ] || source.args.key; + metaFields?.[ source.args.key ] ?? source.args.key; } return newValues; },