Skip to content

Commit 5ba465a

Browse files
committed
Widgets: Goodreads - use jetpack_stats_extra instead of stats_extra
1 parent 0f71669 commit 5ba465a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/widgets/goodreads.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ function widget( $args, $instance ) {
7878
echo '<script src="' . esc_url( $goodreads_url ) . '"></script>' . "\n";
7979

8080
echo $args['after_widget'];
81-
if ( function_exists( 'stats_extra' ) ) {
82-
stats_extra( 'widget', 'goodreads' );
83-
}
81+
82+
do_action( 'jetpack_stats_extra', 'widget', 'goodreads' );
8483
}
8584

8685
function goodreads_user_id_exists( $user_id ) {

0 commit comments

Comments
 (0)