v1.5.0
This commit is contained in:
parent
672d0f295f
commit
83d629568a
20 changed files with 1321 additions and 15 deletions
5
includes/External/AbstractProvider.php
vendored
5
includes/External/AbstractProvider.php
vendored
|
|
@ -37,7 +37,10 @@ abstract class AbstractProvider {
|
|||
* @return positive-int
|
||||
*/
|
||||
public function rate_limit(): int {
|
||||
return 10;
|
||||
$raw = get_option( 'robotstxt_mediaaudit_settings', array() );
|
||||
$opts = is_array( $raw ) ? $raw : array();
|
||||
$val = $opts['rate_limit_per_minute'] ?? null;
|
||||
return is_numeric( $val ) ? max( 1, (int) $val ) : 10;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue