PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
← All changes | includes/emails/class-charitable-email-password-reset.php +26 -20 1.7.0 → 1.8.13 View file →
@@ -3,9 +3,9 @@
3 3 * Class that models the Password Reset email.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Email_Password_Reset
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.4.0
10 10 * @version 1.6.37
11 11 */
@@ -105,14 +105,14 @@
105 105 return self::ID;
106 106 }
107 107
108 108 /**
109 - * Return the recipient for the email.
110 - *
111 - * @since 1.4.0
112 - *
113 - * @return string
114 - */
109 + * Return the recipient for the email.
110 + *
111 + * @since 1.4.0
112 + *
113 + * @return string
114 + */
115 115 public function get_recipient() {
116 116 return $this->has_valid_user() ? $this->user->user_email : '';
117 117 }
118 118
@@ -131,19 +131,25 @@
131 131
132 132 $fields = array(
133 133 'reset_link' => array(
134 134 'description' => __( 'The link the user needs to click to reset their password', 'charitable' ),
135 - 'preview' => add_query_arg( array(
136 - 'key' => '123123123',
137 - 'login' => 'adam123',
138 - ), charitable_get_permalink( 'reset_password_page' ) ),
135 + 'preview' => add_query_arg(
136 + array(
137 + 'key' => '123123123',
138 + 'login' => 'adam123',
139 + ),
140 + charitable_get_permalink( 'reset_password_page' )
141 + ),
139 142 ),
140 143 );
141 144
142 145 if ( $this->has_valid_user() ) {
143 - $fields = array_merge_recursive( $fields, array(
144 - 'reset_link' => array( 'callback' => array( $this, 'get_reset_link' ) ),
145 - ) );
146 + $fields = array_merge_recursive(
147 + $fields,
148 + array(
149 + 'reset_link' => array( 'callback' => array( $this, 'get_reset_link' ) ),
150 + )
151 + );
146 152 }
147 153
148 154 return $fields;
149 155 }
@@ -217,15 +223,15 @@
217 223 * @return string
218 224 */
219 225 protected function get_default_body() {
220 226 ob_start();
221 -?>
222 -<p><?php _e( 'Someone requested that the password be reset for the following account:', 'charitable' ) ?></p>
223 -<p><?php _e( 'Username: [charitable_email show=user_login]', 'charitable' ) ?></p>
224 -<p><?php _e( 'If this was a mistake, just ignore this email and nothing will happen.', 'charitable' ) ?></p>
225 -<p><?php _e( 'To reset your password, visit the following address:', 'charitable' ) ?></p>
227 + ?>
228 +<p><?php esc_html_e( 'Someone requested that the password be reset for the following account:', 'charitable' ); ?></p>
229 +<p><?php esc_html_e( 'Username: [charitable_email show=user_login]', 'charitable' ); ?></p>
230 +<p><?php esc_html_e( 'If this was a mistake, just ignore this email and nothing will happen.', 'charitable' ); ?></p>
231 +<p><?php esc_html_e( 'To reset your password, visit the following address:', 'charitable' ); ?></p>
226 232 <p><a href="[charitable_email show=reset_link]">[charitable_email show=reset_link]</a></p>
227 -<?php
233 + <?php
228 234 /**
229 235 * Filter the default email body.
230 236 *
231 237 * @since 1.4.0