Top Commentators Widget
[resolved] apply_filters 'widget_title' (4 posts)

  1. whoaminobody
    Posted 4 years ago #

    If you look at the builtin WordPress widgets, they apply widget_title filters against the title. Is it possible to do the same for the Top Commentators plugin?

    The 'widget_title' filter is used in all the builtin wordpress widgets (wp-includes/default-widgets.php).

    It's a small change. apply_filters needs to be added to widget():
    $title = $instance['title'];
    $title = apply_filters('widget_title', $title);


  2. Lorna Timbah
    Plugin Author

    Posted 3 years ago #

    Great suggestion. Just so you know, I've added it in 1.5 beta a while back but haven't made it as stable. I think it should be OK though.


  3. patrickd88
    Posted 3 years ago #

    I downloaded this beta and installed because 1.4.2 was showing weird URL's for all the top commentators. This fixed it, so there's that.

  4. Lorna Timbah
    Plugin Author

    Posted 3 years ago #

    @patrick88 Great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Top Commentators Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic