~canonical-sysadmins/wordpress/4.7.4

« back to all changes in this revision

Viewing changes to wp-content/plugins/akismet/views/config.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:
12
12
                                        <a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>" class=""><?php esc_html_e( 'Summaries' , 'akismet');?></a>
13
13
                                </span>
14
14
 
15
 
                                <iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 215px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=180&locale=%s', urlencode( get_bloginfo('url') ), Akismet::get_api_key(), get_locale() );?>"></iframe>
 
15
                                <iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 215px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=180&locale=%s', urlencode( get_option( 'home' ) ), Akismet::get_api_key(), get_locale() );?>"></iframe>
16
16
                                <ul>
17
17
                                        <li>
18
18
                                                <h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
26
26
                                        </li>
27
27
                                        <li>
28
28
                                                <h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
29
 
                                                <span><?php echo $stat_totals['all']->accuracy; ?>%</span>
 
29
                                                <span><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
30
30
                                                <?php printf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ); ?>
31
31
                                                |
32
32
                                                <?php printf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ); ?>
63
63
                                                                                                <th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
64
64
                                                                                                <td width="5%"/>
65
65
                                                                                                <td align="left">
66
 
                                                                                                        <span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $akismet_user->status;?>"></span>
 
66
                                                                                                        <span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="<?php echo esc_attr( 'regular-text code ' . $akismet_user->status ); ?>"></span>
67
67
                                                                                                </td>
68
68
                                                                                        </tr>
69
69
                                                                                        <?php endif; ?>
166
166
                                                                                        <th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
167
167
                                                                                        <td width="5%"/>
168
168
                                                                                        <td align="left">
169
 
                                                                                                <span><?php echo $akismet_user->account_name; ?></span>
 
169
                                                                                                <span><?php echo esc_html( $akismet_user->account_name ); ?></span>
170
170
                                                                                        </td>
171
171
                                                                                </tr>
172
172
                                                                                <tr>