WordPress 4.6.1
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / class.akismet-widget.php
index a2c4f303767e59a4361238e5a6d442070e3536d4..474f7592b19d2969b4e77f146156168c4fe7a18f 100644 (file)
@@ -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'];