[wp-trac] [WordPress Trac] #29786: read_post_meta should be a meta capability
WordPress Trac
noreply at wordpress.org
Mon Sep 29 11:19:32 UTC 2014
#29786: read_post_meta should be a meta capability
--------------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
Right now, we have `edit_post_meta`, `delete_post_meta`, and
`add_post_meta`. In order to be able to expose metadata publicly, we need
to be able to check if we can access individual keys.
`is_protected_meta` only controls whether it's prefixed and should default
to being protected (by default, prefixed with `_`). This isn't adequate to
check for read permission on a key, because it's not filterable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29786>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list