[wp-trac] [WordPress Trac] #44238: Add protected param to register meta
WordPress Trac
noreply at wordpress.org
Thu Feb 21 18:57:32 UTC 2019
#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 | Resolution:
Keywords: has-patch | Focuses:
--------------------------------+------------------------------
Comment (by TimothyBlynJacobs):
Could the two approaches be combined? If a boolean value is passed for
`protected` changes it to the `__return_true` or `__return_false`
callbacks, otherwise add it as a callback. That'd make the usage easy for
most cases, but still simplify the API for users that need the advanced
control of a custom callback.
@spacedmonkey What is the reason for the second (.2) patch? Should that be
a separate ticket? Or resolved first?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44238#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list