Skip to content

Commit

Permalink
remove blocked_message function awesomemotive#654
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Nov 14, 2016
1 parent ce7671c commit fba31a3
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions modules/aioseop_bad_robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,6 @@ function filter_bad_botlist( $botlist ) {
return $botlist;
}


/**
* Updates blocked message.
*
* @param string $msg
*/
function blocked_message( $msg ) {
if ( empty( $this->options["{$this->prefix}blocked_log"] ) ) {
$this->options["{$this->prefix}blocked_log"] = '';
}
$this->options["{$this->prefix}blocked_log"] = date( 'Y-m-d H:i:s' ) . " {$msg}\n" . $this->options["{$this->prefix}blocked_log"];
if ( $this->strlen( $this->options["{$this->prefix}blocked_log"] ) > 4096 ) {
$end = $this->strrpos( $this->options["{$this->prefix}blocked_log"], "\n" );
if ( false === $end ) {
$end = 4096;
}
$this->options["{$this->prefix}blocked_log"] = $this->substr( $this->options["{$this->prefix}blocked_log"], 0, $end );
}
$this->update_class_option( $this->options );
}


/**
* Filter display options.
*
Expand Down

0 comments on commit fba31a3

Please sign in to comment.