Opened 10 years ago
Last modified 5 years ago
#29786 new enhancement
read_post_meta should be a meta capability
Reported by: | rmccue | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | needs-patch |
Focuses: | Cc: |
Description
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.
Change History (5)
Note: See
TracTickets for help on using
tickets.
Moving out of 4.2 milestone since this needs discussion and a patch.