[wp-trac] [WordPress Trac] #37885: Build out register_setting like register_meta
WordPress Trac
noreply at wordpress.org
Tue Sep 20 20:28:10 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 rmccue):
Uploaded an updated patch with a few final tweaks:
* `$sanitize_callback` in `unregister_setting()` is now taken from the
args used during registration.
* Removed the `return` for `register_setting()`, which doesn't actually
return anything.
* Tweaked the phpDoc for both functions to match style, and add missing
descriptions.
* Changed the `$sanitize_callback` check to use `! empty`, since our
default is now `null` rather than `''`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37885#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list