Changes between Version 1 and Version 2 of Ticket #48747, comment 5
- Timestamp:
- 11/22/2019 05:37:06 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #48747, comment 5
v1 v2 3 3 I wanted to replace some of the color controls defined in the parent theme, with a control that supports rgba ([https://github.com/BraadMartin/components/tree/master/alpha-color-picker Alpha Color Picker]), I was coming unstuck with `sanitize_hex_color` running before/instead-of my own sanitize callback. 4 4 5 The patch you suggested would make it easier to remove the sanitize filter, though I feel it's use would only be apparent after one has discovered the issue hand. Now that I know what the problem is I can workaround it myself.5 The patch you suggested would make it easier to remove the sanitize filter, though I feel it's use would only be apparent after one has discovered the issue at hand. Now that I know what the problem is I can workaround it myself. 6 6 7 7 I think what Weston suggested would be the way to go if possible, have filters added when needed, rather than in the constructor.. that way I could presumable remove a setting in the `customize_register` hook before any filters have been added.