← All changes
|
includes/endpoints/class-charitable-forgot-password-endpoint.php
+4
-3
1.7.0.12
→
1.8.13
View file →
| @@ -3,12 +3,12 @@ | ||
| 3 | 3 | * Forgot password endpoint. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Classes/Charitable_Forgot_Password_Endpoint |
| 6 | 6 | * @author David Bisset |
| 7 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 7 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 8 | 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | 9 | * @since 1.5.0 |
| 10 | - * @version 1.6.55 | |
| 10 | + * @version 1.8.9.1 | |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | 14 | exit; |
| @@ -153,8 +153,9 @@ | ||
| 153 | 153 | /** |
| 154 | 154 | * Get the content to display for the endpoint. |
| 155 | 155 | * |
| 156 | 156 | * @since 1.5.0 |
| 157 | + * @version 1.8.9.1 | |
| 157 | 158 | * |
| 158 | 159 | * @param string $content Default content. |
| 159 | 160 | * @return string |
| 160 | 161 | */ |
| @@ -160,9 +161,9 @@ | ||
| 160 | 161 | */ |
| 161 | 162 | public function get_content( $content ) { |
| 162 | 163 | ob_start(); |
| 163 | 164 | |
| 164 | - if ( isset( $_GET['email_sent'] ) ) { | |
| 165 | + if ( isset( $_GET['email_sent'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 165 | 166 | charitable_template( 'account/forgot-password-sent.php' ); |
| 166 | 167 | } else { |
| 167 | 168 | charitable_template( |
| 168 | 169 | 'account/forgot-password.php', |