Add parameter to wp_nonce_field
Per new Woo template files.
This commit is contained in:
parent
183dce2744
commit
8266c636ef
|
@ -44,7 +44,7 @@ if ( is_user_logged_in() ) {
|
||||||
<?php do_action( 'woocommerce_login_form' ); ?>
|
<?php do_action( 'woocommerce_login_form' ); ?>
|
||||||
|
|
||||||
<p class="form-row">
|
<p class="form-row">
|
||||||
<?php wp_nonce_field( 'woocommerce-login' ); ?>
|
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
||||||
<button type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'understrap' ); ?>"><?php esc_html_e( 'Login', 'understrap' ); ?></button>
|
<button type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'understrap' ); ?>"><?php esc_html_e( 'Login', 'understrap' ); ?></button>
|
||||||
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
||||||
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">
|
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">
|
||||||
|
|
Reference in New Issue