WordPress.org

Support

Support » Plugins and Hacks » Jetpack by WordPress.com » [Resolved] Widget Subscriptions: Could you pass the widget_title filter?

[Resolved] Widget Subscriptions: Could you pass the widget_title filter?

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    @jeherve

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Widget Subscriptions: Could you pass the widget_title filter?’ is closed to new replies.
Skip to toolbar