We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923b6d0 commit 4bf2b2eCopy full SHA for 4bf2b2e
packages/editor/src/bindings/post-meta.js
@@ -120,10 +120,14 @@ export default {
120
return false;
121
}
122
123
- // Empty string or `false` could be a valid value, so we need to check if the field value is undefined.
124
- if ( getValue( { select, context, args } ) === undefined ) {
+ const metaFields = getPostMetaFields( select, context );
+ const hasMatchingMetaField = metaFields.some(
125
+ ( field ) => field.args.key === args.key
126
+ );
127
+ if ( ! hasMatchingMetaField ) {
128
129
130
+
131
// Check that custom fields metabox is not enabled.
132
const areCustomFieldsEnabled =
133
select( editorStore ).getEditorSettings().enableCustomFields;
0 commit comments