WordPress.org

Forums

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

  1. Chouby
    Member
    Posted 2 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).
    Replace:

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

    by

    $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

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year 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