| @@ -1,11 +1,22 @@ | ||
| 1 | 1 | <?php |
| 2 | -/* CLASSMAP: IGNORE */ | |
| 3 | 2 | |
| 3 | +// Exit if accessed directly. | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 7 | + | |
| 4 | 8 | /** |
| 5 | 9 | * This provides backwards compatibility for any extensions that |
| 6 | 10 | * attempt to load the Charitable_Upgrade class from here. |
| 7 | 11 | * |
| 12 | + * @package Charitable/Functions/Core | |
| 13 | + * @author David Bisset | |
| 14 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 15 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| 16 | + * @since 1.0.0 | |
| 17 | + * @version 1.8.0 | |
| 18 | + * | |
| 8 | 19 | * @deprecated |
| 9 | 20 | */ |
| 10 | 21 | |
| 11 | 22 | if ( class_exists( 'Charitable_Upgrade' ) ) { |
| @@ -11,5 +22,5 @@ | ||
| 11 | 22 | if ( class_exists( 'Charitable_Upgrade' ) ) { |
| 12 | 23 | return; |
| 13 | 24 | } |
| 14 | 25 | |
| 15 | -require_once( charitable()->get_path( 'includes' ) . 'upgrades/class-charitable-upgrade.php' ); | |
| 26 | +require_once charitable()->get_path( 'includes' ) . 'upgrades/class-charitable-upgrade.php'; | |