]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/plugins/akismet/views/config.php
WordPress 4.6.1
[autoinstalls/wordpress.git] / wp-content / plugins / akismet / views / config.php
index d84e21a8d9dabfc9f0946827abdee533f5dab93f..bc8cb9771732c796940742c4eee4a598e5cbae98 100644 (file)
@@ -12,7 +12,7 @@
                                        <a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>" class=""><?php esc_html_e( 'Summaries' , 'akismet');?></a>
                                </span>
 
-                               <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>
+                               <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>
                                <ul>
                                        <li>
                                                <h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
@@ -26,7 +26,7 @@
                                        </li>
                                        <li>
                                                <h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
-                                               <span><?php echo $stat_totals['all']->accuracy; ?>%</span>
+                                               <span><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
                                                <?php printf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ); ?>
                                                |
                                                <?php printf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ); ?>
@@ -63,7 +63,7 @@
                                                                                                <th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
                                                                                                <td width="5%"/>
                                                                                                <td align="left">
-                                                                                                       <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>
+                                                                                                       <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>
                                                                                                </td>
                                                                                        </tr>
                                                                                        <?php endif; ?>
                                                                                        <th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
                                                                                        <td width="5%"/>
                                                                                        <td align="left">
-                                                                                               <span><?php echo $akismet_user->account_name; ?></span>
+                                                                                               <span><?php echo esc_html( $akismet_user->account_name ); ?></span>
                                                                                        </td>
                                                                                </tr>
                                                                                <tr>