← All changes
|
includes/admin/dashboard-widgets/class-charitable-donations-dashboard-widget.php
+8
-6
1.6.8
→
1.8.13
View file →
| @@ -3,15 +3,17 @@ | ||
| 3 | 3 | * Sets up the Donations dashboard widget. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Classes/Charitable_Donations_Dashboard_Widget |
| 6 | 6 | * @version 1.2.0 |
| 7 | - * @author Eric Daams | |
| 8 | - * @copyright Copyright (c) 2019, Studio 164a | |
| 7 | + * @author David Bisset | |
| 8 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 9 | 9 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly. |
| 13 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit; | |
| 15 | +} | |
| 14 | 16 | |
| 15 | 17 | if ( ! class_exists( 'Charitable_Donations_Dashboard_Widget' ) ) : |
| 16 | 18 | |
| 17 | 19 | /** |
| @@ -46,13 +48,13 @@ | ||
| 46 | 48 | * |
| 47 | 49 | * @return void |
| 48 | 50 | */ |
| 49 | 51 | public static function display() { |
| 50 | - ?> | |
| 52 | + ?> | |
| 51 | 53 | <p class="hide-if-no-js"> |
| 52 | - <img src="<?php echo charitable()->get_path( 'assets', false ) ?>/images/charitable-loading.gif" width="60" height="60" alt="<?php esc_attr_e( 'Loading…', 'charitable' ) ?>" /> | |
| 54 | + <img src="<?php echo esc_url( charitable()->get_path( 'assets', false ) ); ?>/images/charitable-loading.gif" width="60" height="60" alt="<?php esc_attr_e( 'Loading…', 'charitable' ); ?>" /> | |
| 53 | 55 | </p> |
| 54 | - <?php | |
| 56 | + <?php | |
| 55 | 57 | } |
| 56 | 58 | |
| 57 | 59 | /** |
| 58 | 60 | * Return the content to display inside the widget. |