[wp-trac] [WordPress Trac] #37885: Build out register_setting like register_meta
WordPress Trac
noreply at wordpress.org
Mon Sep 19 23:30:21 UTC 2016
#37885: Build out register_setting like register_meta
--------------------------------+--------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Options, Meta APIs | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
--------------------------------+--------------------
Comment (by aaroncampbell):
[attachment:37885.2.diff] is based on 37885.diff with the following
changes:
* In `register_setting()` use `$args['sanitize_callback']` instead of
`$sanitize_callback` which no longer exists.
* Added braces to two conditionals in `unregister_setting()` just because
we're in there and that's the standard.
* Docs on `get_registered_settings()` to reflect settings and not meta.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37885#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list