| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @author WP Charitable LLC |
| 6 | 6 | * @package Charitable/Templates/Emails |
| 7 | 7 | * @version 1.0.0 |
| 8 | + * @version 1.8.8.6 | |
| 8 | 9 | */ |
| 9 | 10 | |
| 10 | 11 | // Exit if accessed directly. |
| 11 | 12 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -11,12 +12,12 @@ | ||
| 11 | 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | 13 | exit; |
| 13 | 14 | } |
| 14 | 15 | |
| 15 | -if ( ! isset( $_GET[ 'email_id' ] ) ) { | |
| 16 | +if ( ! isset( $_GET['email_id'] ) ) { // phpcs:ignore | |
| 16 | 17 | return; |
| 17 | 18 | } |
| 18 | 19 | |
| 19 | -$email = charitable_get_helper( 'emails' )->get_email( $_GET[ 'email_id' ] ); | |
| 20 | -$email_object = new $email; | |
| 20 | +$charitable_email = charitable_get_helper( 'emails' )->get_email( esc_html( $_GET['email_id'] ) ); // phpcs:ignore | |
| 21 | +$charitable_email_object = new $charitable_email(); | |
| 21 | 22 | |
| 22 | -echo $email_object->preview(); | |
| 23 | +echo $charitable_email_object->preview(); // phpcs:ignore | |