[wp-trac] [WordPress Trac] #36452: customize_value should be passed $this

WordPress Trac noreply at wordpress.org
Fri Apr 8 19:24:03 UTC 2016


#36452: customize_value should be passed $this
-----------------------------+-----------------------------
 Reporter:  nwp_developer    |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Customize        |    Version:  4.4.2
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 In $WP_Customize_Setting->value():

 $value = apply_filters( "customize_value_{$id_base}", $value );

 should be

 $value = apply_filters( "customize_value_{$id_base}", $this);

 because only having access to $default severely limits the ability to
 modify the value for custom settings not handled as theme_mod or option.

 For example, if I need access to other setting properties at
 add_filter(customize_value...) to filter the setting value how do I get
 access to those properties?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36452>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list