[wp-trac] [WordPress Trac] #41271: Customizer sanitize_callback gets called multiple times on setting change

WordPress Trac noreply at wordpress.org
Sun Jul 9 07:21:35 UTC 2017


#41271: Customizer sanitize_callback gets called multiple times on setting change
----------------------------+------------------------------
 Reporter:  kylejennings83  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Customize       |     Version:  4.8
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by westonruter):

 @kylejennings83 The reason why it is being called multiple times is that
 the validated/sanitized value is not cached for a given changeset setting
 value. If you output the `current_action()` (or even `debug_backtrace()`)
 in the error log for each instance, this should illuminate better the
 times the situation that this is being called.

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


More information about the wp-trac mailing list