diff --git a/templates/emails/customer-reset-password.php b/templates/emails/customer-reset-password.php index f78351657f2..129d87f6638 100644 --- a/templates/emails/customer-reset-password.php +++ b/templates/emails/customer-reset-password.php @@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
- +
diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index 9513a046486..c088e18ab5c 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -388,7 +388,7 @@ if ( ! function_exists( 'is_account_page' ) ) { * @return bool */ function is_account_page() { - return ( is_page( woocommerce_get_page_id( 'myaccount' ) ) || is_page( woocommerce_get_page_id( 'edit_address' ) ) || is_page( woocommerce_get_page_id( 'view_order' ) ) || is_page( woocommerce_get_page_id( 'change_password' ) ) ) ? true : false; + return ( is_page( woocommerce_get_page_id( 'myaccount' ) ) || is_page( woocommerce_get_page_id( 'edit_address' ) ) || is_page( woocommerce_get_page_id( 'view_order' ) ) || is_page( woocommerce_get_page_id( 'change_password' ) || is_page( woocommerce_get_page_id( 'lost_password' ) ) ) ) ? true : false; } } if ( ! function_exists( 'is_order_received_page' ) ) { diff --git a/woocommerce-hooks.php b/woocommerce-hooks.php index 7ffcec063ab..24b5c79b9cf 100644 --- a/woocommerce-hooks.php +++ b/woocommerce-hooks.php @@ -325,4 +325,14 @@ add_filter( 'woocommerce_short_description', 'convert_chars' ); add_filter( 'woocommerce_short_description', 'wpautop' ); add_filter( 'woocommerce_short_description', 'shortcode_unautop' ); add_filter( 'woocommerce_short_description', 'prepend_attachment' ); -add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // AFTER wpautop() \ No newline at end of file +add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // AFTER wpautop() + +function woocommerce_lostpassword_url( $url ) { + + $id = woocommerce_get_page_id( 'lost_password' ); + if ($id != -1) $url = get_permalink( $id ); + + return $url; +} + +add_filter('lostpassword_url', 'woocommerce_lostpassword_url');