[wp-trac] [WordPress Trac] #37885: Build out register_setting like register_meta

WordPress Trac noreply at wordpress.org
Sat Sep 3 11:08:17 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:
--------------------------------+--------------------
Changes (by rmccue):

 * keywords:  has-patch dev-feedback => has-patch commit


Comment:

 If we want to someday unify the meta and settings APIs, sure, but that's
 not what this ticket is about. Similar to the meta ticket, I think this is
 a bit off-track, and I worry we're not going to make forward movement if
 we keep discussing that.

 This ticket is about changing the `register_setting` function to take
 extra parameters to make it more extensible. Any other goals should be new
 tickets.

 ---

 Patch looks good; the change in `unregister_setting` should add braces on
 to the `$sanitize_callback != ''` conditional, since we're in the region.
 Otherwise, :thumbsup:.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37885#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list