Changes between Initial Version and Version 1 of Ticket #45812, comment 2
- Timestamp:
- 01/02/2019 07:20:54 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #45812, comment 2
initial v1 1 Hi @joyously, You are correct it's the control object that is sent as a second parameter, my bad. Many/most sanitation functions only accept one parameter. Also, I have worked with the customize API in the past and didn't run into this issue before using other sanitize callback function like e.g. sanitize_hex_color. It appears I'm doing everything correctly, yet I receive errors.1 Hi @joyously, Many/most sanitation functions only accept only one parameter and [the docs offer examples](https://developer.wordpress.org/themes/customize-api/customizer-objects/) that are using functions that accept only one parameter. I have worked with the customize API in the past and didn't run into this issue. It appears I'm doing everything correctly, yet I receive errors this time around.