$title = $instance['title'];
}
else {
- $title = __( 'Spam Blocked' , 'akismet');
+ $title = __( 'Spam Blocked' , 'akismet' );
}
?>
function widget( $args, $instance ) {
$count = get_option( 'akismet_spam_count' );
+ if ( ! isset( $instance['title'] ) ) {
+ $instance['title'] = __( 'Spam Blocked' , 'akismet' );
+ }
+
echo $args['before_widget'];
if ( ! empty( $instance['title'] ) ) {
echo $args['before_title'];
?>
<div class="a-stats">
- <a href="http://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count , 'akismet'), number_format_i18n( $count ) ); ?></a>
+ <a href="https://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count , 'akismet'), number_format_i18n( $count ) ); ?></a>
</div>
<?php