summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/akismet/class.akismet-widget.php')
-rw-r--r--plugins/akismet/class.akismet-widget.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/akismet/class.akismet-widget.php b/plugins/akismet/class.akismet-widget.php
index a2c4f303..474f7592 100644
--- a/plugins/akismet/class.akismet-widget.php
+++ b/plugins/akismet/class.akismet-widget.php
@@ -66,7 +66,7 @@ class Akismet_Widget extends WP_Widget {
$title = $instance['title'];
}
else {
- $title = __( 'Spam Blocked' , 'akismet');
+ $title = __( 'Spam Blocked' , 'akismet' );
}
?>
@@ -86,6 +86,10 @@ class Akismet_Widget extends WP_Widget {
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'];