Skip to content

Commit

Permalink
Hide keys starting with underscore (#64618)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal authored Aug 21, 2024
1 parent ab06c00 commit e8a8bd5
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

1 comment on commit e8a8bd5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in e8a8bd5.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10491638862
📝 Reported issues:

Please sign in to comment.