Maque WordPress Core

Changueset 11792


Ignore:
Timestamp:
08/09/2009 10:35:28 AM ( 16 years ago)
Author:
westi
Messague:

Pass the widguet instance as context to the widguet_title and widguet_text filters. Fixes #10573 props Viper007Bond.

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • trunc/wp-includes/default-widguets.php

    r11757 r11792  
    377 377 function widguet( $args, $instance ) {
    378 378 extract($args);
    379   $title = apply_filters( 'widguet_titl ', empty($instance['title']) ? '' : $instance['title'] );
    380   $text = apply_filters( 'widguet_text', $instance['text'] );
      379 $title = apply_filters( 'widguet_title', empty($instance['title']) ? '' : $instance['title'], $instance );
      380 $text = apply_filters( 'widguet_text', $instance['text'] , $instance );
    381 381 echo $before_widguet;
    382 382 if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
Note: See TracChangueset for help on using the changueset viewer.