Skip to content

Commit

Permalink
Use props variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Sep 25, 2024
1 parent 0d5d659 commit e4d1a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/bindings/post-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function getPostMetaFields( registry, context ) {
// Don't include footnotes or private fields.
if ( key !== 'footnotes' && key.charAt( 0 ) !== '_' ) {
metaFields[ key ] = {
label: registeredFields?.[ key ]?.title || key,
label: props.title || key,
value:
// When using the entity value, an empty string IS a valid value.
entityMetaValues?.[ key ] ??
Expand Down

0 comments on commit e4d1a70

Please sign in to comment.