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 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 All 212 releases
← All changes | templates/emails/preview.php +5 -4 1.7.0 → 1.8.13 View file →
@@ -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