v1.0.1
This commit is contained in:
parent
515af45d09
commit
5221310caa
1 changed files with 59 additions and 14 deletions
|
|
@ -320,7 +320,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Admin' ) ) {
|
|||
|
||||
// phpcs:disable WordPress.Security.NonceVerification.Missing -- Verified by check_admin_referer() above.
|
||||
$tab = isset( $_POST['tab'] ) ? sanitize_key( wp_unslash( $_POST['tab'] ) ) : 'main';
|
||||
$tab = in_array( $tab, array( 'main', 'logs', 'general' ), true ) ? $tab : 'main';
|
||||
$tab = in_array( $tab, array( 'main', 'plugins', 'logs', 'general' ), true ) ? $tab : 'main';
|
||||
|
||||
if ( 'logs' === $tab ) {
|
||||
$retention = isset( $_POST['robotstxt_telemetry_retention_period'] ) ? sanitize_key( wp_unslash( $_POST['robotstxt_telemetry_retention_period'] ) ) : '12hours';
|
||||
|
|
|
|||
Loading…
Reference in a new issue