Use get_current_step() inside step tracking method
This commit is contained in:
parent
919785bce8
commit
9e6836e3a0
|
@ -260,7 +260,7 @@ class WC_Admin_Setup_Wizard_Tracking {
|
||||||
*/
|
*/
|
||||||
public static function track_skip_step() {
|
public static function track_skip_step() {
|
||||||
$previous_step = get_option( 'woocommerce_obw_last_completed_step' );
|
$previous_step = get_option( 'woocommerce_obw_last_completed_step' );
|
||||||
$current_step = isset( $_GET['step'] ) ? sanitize_text_field( $_GET['step'] ) : false; // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.ValidatedSanitizedInput
|
$current_step = self::get_current_step();
|
||||||
if ( ! $previous_step || ! $current_step ) {
|
if ( ! $previous_step || ! $current_step ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue