This commit is contained in:
Javier Casares 2026-03-28 10:06:54 +00:00
commit 5add9b5e84
7 changed files with 372 additions and 21 deletions

View file

@ -769,7 +769,7 @@ class Two_Factor_Extended_Settings {
$export_data = array(
'version' => TWO_FACTOR_EXTENDED_VERSION,
'timestamp' => current_time( 'timestamp' ),
'timestamp' => time(),
'settings' => $settings,
);
@ -968,9 +968,8 @@ class Two_Factor_Extended_Settings {
}
// Get current tab.
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Tab parameter for UI navigation
$tab_param = isset( $_GET['tab'] ) && is_string( $_GET['tab'] ) ? $_GET['tab'] : '';
$current_tab = $tab_param ? sanitize_key( $tab_param ) : 'settings';
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Tab parameter for UI navigation; no state change
$current_tab = isset( $_GET['tab'] ) && is_string( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : 'settings';
// Define tabs.
$tabs = array(