Fixed deprecated woocommerce_lostpassword_url() and lost password url on myaccount/form-login.php
ref #8459
This commit is contained in:
parent
0ac6b9da27
commit
ec0783f382
|
@ -476,7 +476,7 @@ function woocommerce_get_endpoint_url( $endpoint, $value = '', $permalink = '' )
|
|||
* @deprecated
|
||||
*/
|
||||
function woocommerce_lostpassword_url( $url ) {
|
||||
return wc_lostpassword_url();
|
||||
return wc_lostpassword_url( $url );
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
|
|
|
@ -50,7 +50,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</label>
|
||||
</p>
|
||||
<p class="lost_password">
|
||||
<a href="<?php echo esc_url( wc_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a>
|
||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a>
|
||||
</p>
|
||||
|
||||
<?php do_action( 'woocommerce_login_form_end' ); ?>
|
||||
|
|
Loading…
Reference in New Issue