Add parameter to wp_nonce_field

Per new Woo template files.
This commit is contained in:
Unknown 2018-03-22 14:15:44 -06:00 committed by zachary
parent 183dce2744
commit 8266c636ef
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ if ( is_user_logged_in() ) {
<?php do_action( 'woocommerce_login_form' ); ?>
<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>
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">