[Plugin: WP-SpamFree] Small change to the Dashboard section
-
Just for aesthetics, I modified the spamfree_stats() function. The extra
<h3>
takes up real-estate on the dashboard, and if the plugin has not yet blocked any spam, there isn’t even a link back to its home page. Here’s what I am running:function spamfree_stats() { $spamfree_count = get_option('spamfree_count'); if ( !$spamfree_count ) { echo '<p>'.sprintf(__('<a href="%1$s" target="_blank">WP-SpamFree</a> has not yet blocked any spam comments.'), 'http://www.hybrid6.com/webgeek/plugins/wp-spamfree/' ).'</p>'; } else { echo '<p>'.sprintf(__('<a href="%1$s" target="_blank">WP-SpamFree</a> has blocked <strong>%2$s</strong> spam comments.'), 'http://www.hybrid6.com/webgeek/plugins/wp-spamfree/', number_format($spamfree_count) ).'</p>'; } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: WP-SpamFree] Small change to the Dashboard section’ is closed to new replies.