Jake Vanderwerf
2026-01-22 58e8ae0759ccfa97c478ccae4e0778bdce70966f
inc/meta/MetaSanitizer.php
@@ -22,12 +22,10 @@
    public function sanitize(mixed $value, array $field_config):mixed
    {
        $callback = $this->getCallback($field_config);
        error_log('Callback: '.print_r($callback, true));
        if (is_array($callback)) {
            return call_user_func([$this, $callback[1]], $value, $field_config);
        }
        if (method_exists($this, $callback)) {
            error_log('Method exists');
            return $this->$callback($value, $field_config);
        } else {
            return call_user_func($callback, $value);