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

WordPress Trac noreply at wordpress.org
Sun Mar 25 22:22: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:  close               |     Focuses:  administration
--------------------------------+-----------------------------

Comment (by peterwilsoncc):

 Over in #43629, @seanleavey has suggested adding the priority and number
 of arguments accepted to the `register_setting` arguments. This could be a
 workaround for #14671.

 This would require modification to `unregister_setting` removing the
 filter.

 I'm undecided on the suitability of this solution.

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


More information about the wp-trac mailing list