v1.7.1
This commit is contained in:
parent
4402f3570d
commit
7b7fff5246
36 changed files with 610 additions and 31 deletions
10
includes/External/ExternalScanner.php
vendored
10
includes/External/ExternalScanner.php
vendored
|
|
@ -7,6 +7,10 @@
|
|||
|
||||
namespace MediaRightsAudit\External;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use MediaRightsAudit\Core\Queue\Scheduler;
|
||||
|
||||
/**
|
||||
|
|
@ -145,6 +149,8 @@ class ExternalScanner {
|
|||
|
||||
self::scan_batch( $batch_size );
|
||||
|
||||
delete_transient( 'mra_alert_count' );
|
||||
|
||||
if ( self::get_pending_count() > 0 ) {
|
||||
Scheduler::schedule_single( self::AS_HOOK );
|
||||
}
|
||||
|
|
@ -361,6 +367,8 @@ class ExternalScanner {
|
|||
)
|
||||
);
|
||||
// phpcs:enable WordPress.DB.DirectDatabaseQuery,WordPress.DB.PreparedSQL.InterpolatedNotPrepared,WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
|
||||
|
||||
delete_transient( 'mra_alert_count' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -381,6 +389,8 @@ class ExternalScanner {
|
|||
);
|
||||
// phpcs:enable WordPress.DB.DirectDatabaseQuery
|
||||
|
||||
delete_transient( 'mra_alert_count' );
|
||||
|
||||
return $count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue