← All changes
|
includes/shortcodes/class-charitable-my-donations-shortcode.php
+5
-4
1.7.0.7
→
1.8.13
View file →
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * My Donations shortcode class. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Shortcodes/My Donations |
| 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.45 |
| 11 | 11 | */ |
| @@ -48,9 +48,9 @@ | ||
| 48 | 48 | |
| 49 | 49 | if ( false === $args['hide_login'] ) { |
| 50 | 50 | $args['redirect'] = charitable_get_current_url(); |
| 51 | 51 | |
| 52 | - echo Charitable_Login_Shortcode::display( $args ); | |
| 52 | + echo Charitable_Login_Shortcode::display( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | return ob_get_clean(); |
| 56 | 56 | } |
| @@ -73,10 +73,11 @@ | ||
| 73 | 73 | |
| 74 | 74 | if ( ! $user->is_verified() ) { |
| 75 | 75 | $query_args['user_id'] = $user->ID; |
| 76 | 76 | |
| 77 | - if ( array_key_exists( 'charitable_action', $_GET ) && 'verify_email' === $_GET['charitable_action'] ) { | |
| 78 | - $redirect = array_key_exists( 'redirect_url', $_GET ) ? $_GET['redirect_url'] : false; | |
| 77 | + if ( array_key_exists( 'charitable_action', $_GET ) && 'verify_email' === $_GET['charitable_action'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 78 | + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Display/routing parameter | |
| 79 | + $redirect = array_key_exists( 'redirect_url', $_GET ) ? esc_url_raw( wp_unslash( $_GET['redirect_url'] ) ) : false; | |
| 79 | 80 | $message = sprintf( |
| 80 | 81 | /* translators: %s: email verification link */ |
| 81 | 82 | __( 'We have sent you an email to confirm your email address. Haven\'t received the email? <a href="%s">Click here to send it again.</a>', 'charitable' ), |
| 82 | 83 | esc_url_raw( charitable_get_email_verification_link( $user, $redirect, true ) ) |