v1.5.0
This commit is contained in:
parent
672d0f295f
commit
83d629568a
20 changed files with 1321 additions and 15 deletions
|
|
@ -128,7 +128,11 @@ class ToolsPage {
|
|||
|
||||
case 'external':
|
||||
ExternalScanner::queue_all_pending();
|
||||
ExternalScanner::scan_batch();
|
||||
$raw_opts = get_option( 'robotstxt_mediaaudit_settings', array() );
|
||||
$opts_arr = is_array( $raw_opts ) ? $raw_opts : array();
|
||||
$bs_setting = $opts_arr['external_batch_size'] ?? null;
|
||||
$ajax_bs = is_numeric( $bs_setting ) ? max( 1, (int) $bs_setting ) : 10;
|
||||
ExternalScanner::scan_batch( $ajax_bs );
|
||||
$counts = ExternalScanner::get_status_counts();
|
||||
$remaining = $counts['queued'] ?? 0;
|
||||
$done = ( $counts['scanned'] ?? 0 ) + ( $counts['matches'] ?? 0 ) + ( $counts['error'] ?? 0 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue