This commit is contained in:
Javier Casares 2026-08-18 18:03:59 +00:00
commit 5221310caa

View file

@ -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';