Skip to content

Commit

Permalink
Hide keys starting with underscore (WordPress#64618)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal authored and bph committed Aug 31, 2024
1 parent 025eb15 commit db08582
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 db08582

Please sign in to comment.