WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. whoaminobody
    Member
    Posted 3 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);

    http://wordpress.org/extend/plugins/top-commentators-widget/

  2. Lorna Timbah
    Member
    Plugin Author

    Posted 2 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.

    http://downloads.wordpress.org/plugin/top-commentators-widget.1.5beta.zip

  3. patrickd88
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 years ago #

    @patrick88 Great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic