Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #48747, comment 5


Ignore:
Timestamp:
11/22/2019 05:37:06 AM (5 years ago)
Author:
jon81
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48747, comment 5

    v1 v2  
    33I 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.
    44
    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.
     5The 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.
    66
    77I 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.