[wp-trac] [WordPress Trac] #15335: register_setting() filter for sanitization callback needs to indicate 2 arguments accepted

WordPress Trac noreply at wordpress.org
Sat Jun 9 10:11:41 UTC 2018


#15335: register_setting() filter for sanitization callback needs to indicate 2
arguments accepted
--------------------------------+-----------------------------
 Reporter:  lumination          |       Owner:  markjaquith
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:  Future Release
Component:  Options, Meta APIs  |     Version:  3.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  administration
--------------------------------+-----------------------------
Changes (by ocean90):

 * keywords:  close => has-patch


Comment:

 Since `register_setting()` now supports an `$args` argument, how about a
 `sanitize_callback_accepted_args`  which defaults to 1 as seen in
 [attachment:15335.patch]?

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


More information about the wp-trac mailing list