Skip to content

Commit

Permalink
Hide keys starting with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Aug 19, 2024
1 parent 1db6ca0 commit 037c90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/bindings/post-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ export default {
return null;
}

// Remove footnotes from the list of fields
// Remove footnotes or private keys from the list of fields.
return Object.fromEntries(
Object.entries( metaFields ).filter(
( [ key ] ) => key !== 'footnotes'
( [ key ] ) => key !== 'footnotes' && key.charAt( 0 ) !== '_'
)
);
},
Expand Down

0 comments on commit 037c90f

Please sign in to comment.