[wp-trac] [WordPress Trac] #44238: Add protected param to register meta

WordPress Trac noreply at wordpress.org
Sat May 26 12:17:20 UTC 2018


#44238: Add protected param to register meta
--------------------------------+-----------------------------
 Reporter:  spacedmonkey        |      Owner:  (none)
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  3.1.3
 Severity:  normal              |   Keywords:  has-patch
  Focuses:                      |
--------------------------------+-----------------------------
 It has been possible for developers to make meta keys protected / not
 protected since 3.2.0,
 when the is_protected_meta filter was added. By default all meta keys that
 start with an underscore as seen as protected,
 all those this overriden by the filter. There should be a way to a meta
 key as protected while using register_meta function.
 This would make the register meta function, a point of truth for all meta
 keys / meta type, where a state, type and access
 are defined in one place.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44238>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list