~canonical-sysadmins/wordpress/4.8

« back to all changes in this revision

Viewing changes to wp-content/plugins/akismet/class.akismet-widget.php

  • Committer: Barry Price
  • Date: 2016-09-08 02:50:41 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: barry.price@canonical.com-20160908025041-xblhpbi3hq55m5y3
Merge WP4.6.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                        $title = $instance['title'];
67
67
                }
68
68
                else {
69
 
                        $title = __( 'Spam Blocked' , 'akismet');
 
69
                        $title = __( 'Spam Blocked' , 'akismet' );
70
70
                }
71
71
?>
72
72
 
86
86
        function widget( $args, $instance ) {
87
87
                $count = get_option( 'akismet_spam_count' );
88
88
 
 
89
                if ( ! isset( $instance['title'] ) ) {
 
90
                        $instance['title'] = __( 'Spam Blocked' , 'akismet' );
 
91
                }
 
92
 
89
93
                echo $args['before_widget'];
90
94
                if ( ! empty( $instance['title'] ) ) {
91
95
                        echo $args['before_title'];