Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Call to widget title filter is missing parameters

$
0
0

Replies: 0

Hi,
In the class categoryPosts\Widget (file class-widget.php) method titleHTML you call apply_filters( 'widget_title', $instance['title'] ); but you do not pass the other two parameters defined for the filter, the $instance and the $id_base (see https://developer.wordpress.org/reference/hooks/widget_title/ for reference).
This stops functions hooked on to that filter from working properly.

Please can you correct this.


Viewing all articles
Browse latest Browse all 59525

Trending Articles