| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* This provides backwards compatibility for any extensions that |
| 10 |
* attempt to load the Charitable_Upgrade class from here. |
| 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 |
* |
| 19 |
* @deprecated |
| 20 |
*/ |
| 21 |
|
| 22 |
if ( class_exists( 'Charitable_Upgrade' ) ) { |
| 23 |
return; |
| 24 |
} |
| 25 |
|
| 26 |
require_once charitable()->get_path( 'includes' ) . 'upgrades/class-charitable-upgrade.php'; |
| 27 |
|