Skip to content

Commit

Permalink
only log blocked bots if option is set awesomemotive#654
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Nov 14, 2016
1 parent c3b7f78 commit 0c82ae5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/aioseop_bad_robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ function filter_bad_botlist( $botlist ) {
* @param string $msg
*/
function blocked_message( $msg ) {

if ( ! $this->option_isset( 'track_blocks' ) ) {
return; // Only log if track blocks is checked.
}

if ( empty( $this->options["{$this->prefix}blocked_log"] ) ) {
$this->options["{$this->prefix}blocked_log"] = '';
}
Expand Down

0 comments on commit 0c82ae5

Please sign in to comment.