PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function han
-
Hello,
i have a “widget_title”-Filter Hook in my Theme, that break with a PHP Fatal error, because this Hook needs 3 parameters. But your Widget.php (line 30) applies only one. ( $title = apply_filters( ‘widget_title’, $title ) )
The WP Code Reference say, that filter have 3 parameters.
So i have add these 2 parameters to your applied filter and it runs perfectly.
Here my changes: $title = $title = apply_filters( ‘widget_title’, $title, $instance, null );Please fix that Bug asap ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function han’ is closed to new replies.