dam-spam/modules/check-scripts.php
2025-11-23 20:28:22 -07:00

21 lines
No EOL
502 B
PHP

<?php
if ( !defined( 'ABSPATH' ) ) {
status_header( 404 );
exit;
}
class dam_spam_check_scripts extends dam_spam_module {
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
$sname = $this->getSname();
if ( strpos( $sname, 'wp-cron.php' ) !== false ) {
return esc_html__( 'allow wp-cron', 'dam-spam' );
}
if ( strpos( $sname, 'admin-ajax.php' ) !== false ) {
return esc_html__( 'allow admin-ajax.php', 'dam-spam' );
}
return false;
}
}
?>