Jetpack by WordPress.com
[resolved] Widget Subscriptions: Could you pass the widget_title filter? (2 posts)

  1. Chouby
    Posted 3 years ago #

    In the subscriptions module, the widget title does not pass the 'widget_title' filter as it is done for WordPress default widgets

    I suggest that you modify the code near line 546 in subscriptions.php (the line refers to Jetpack v2.2.5).

    echo $args['before_title'] . '<label for="subscribe-field">' . esc_attr( $instance['title'] ) . '</label>' . $args['after_title'] . "\n";


    $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); // as done for default widgets
    echo $before_title . '<label for="subscribe-field">' . esc_attr( $title ) . '</label>' . $after_title . "\n";

    I also took profit of the extract($args); done at line 532


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    Thanks for the report. I have created a ticket in Trac (#1731-plugins), and added your suggested changes to the tickets. We'll have a look at your suggestion and fix this problem in the next Jetpack release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic