]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/plugins/akismet/class.akismet-widget.php
WordPress 4.6.1
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / class.akismet-widget.php
index a60ae603bc357984f12e9918e6958dce3c679ee4..474f7592b19d2969b4e77f146156168c4fe7a18f 100644 (file)
@@ -66,7 +66,7 @@ class Akismet_Widget extends WP_Widget {
                        $title = $instance['title'];
                }
                else {
                        $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' );
 
        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'];
                echo $args['before_widget'];
                if ( ! empty( $instance['title'] ) ) {
                        echo $args['before_title'];
@@ -95,7 +99,7 @@ class Akismet_Widget extends WP_Widget {
 ?>
 
        <div class="a-stats">
 ?>
 
        <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
        </div>
 
 <?php