[wp-trac] [WordPress Trac] #45812: WP_Customize_Setting sanitize_callback is given 2 parameters; PHP warning and validation fail

WordPress Trac noreply at wordpress.org
Wed Jan 2 18:17:46 UTC 2019


#45812: WP_Customize_Setting sanitize_callback is given 2 parameters; PHP warning
and validation fail
--------------------------+------------------------------
 Reporter:  marclarr      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  5.0.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by joyously):

 Why is this worthy of a ticket?
 The callback is actually sent the value and the control object (not the
 manager object). Isn't the error you see valid, since the function you
 supplied had only one parameter?

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


More information about the wp-trac mailing list