| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | /** |
| 3 | 4 | * Plugin Name: Give - Donation Plugin |
| 4 | 5 | * Plugin URI: https://givewp.com |
| 5 | 6 | * Description: The most robust, flexible, and intuitive way to accept donations on WordPress. |
| @@ -4,10 +5,10 @@ | ||
| 4 | 5 | * Plugin URI: https://givewp.com |
| 5 | 6 | * Description: The most robust, flexible, and intuitive way to accept donations on WordPress. |
| 6 | 7 | * Author: GiveWP |
| 7 | 8 | * Author URI: https://givewp.com/ |
| 8 | - * Version: 2.19.5 | |
| 9 | - * Requires at least: 4.9 | |
| 9 | + * Version: 2.19.6 | |
| 10 | + * Requires at least: 5.0 | |
| 10 | 11 | * Requires PHP: 5.6 |
| 11 | 12 | * Text Domain: give |
| 12 | 13 | * Domain Path: /languages |
| 13 | 14 | * |
| @@ -43,10 +44,14 @@ | ||
| 43 | 44 | |
| 44 | 45 | use Give\Container\Container; |
| 45 | 46 | use Give\DonationForms\Repositories\DonationFormsRepository; |
| 46 | 47 | use Give\DonationForms\ServiceProvider as DonationFormsServiceProvider; |
| 48 | +use Give\Donations\Repositories\DonationRepository; | |
| 49 | +use Give\Donations\ServiceProvider as DonationServiceProvider; | |
| 47 | 50 | use Give\DonationSummary\ServiceProvider as DonationSummaryServiceProvider; |
| 48 | 51 | use Give\DonorDashboards\ServiceProvider as DonorDashboardsServiceProvider; |
| 52 | +use Give\Donors\Repositories\DonorRepositoryProxy; | |
| 53 | +use Give\Donors\ServiceProvider as DonorsServiceProvider; | |
| 49 | 54 | use Give\Form\LegacyConsumer\ServiceProvider as FormLegacyConsumerServiceProvider; |
| 50 | 55 | use Give\Form\Templates; |
| 51 | 56 | use Give\Framework\Exceptions\UncaughtExceptionLogger; |
| 52 | 57 | use Give\Framework\Migrations\MigrationsServiceProvider; |
| @@ -65,8 +70,10 @@ | ||
| 65 | 70 | use Give\ServiceProviders\RestAPI; |
| 66 | 71 | use Give\ServiceProviders\Routes; |
| 67 | 72 | use Give\ServiceProviders\ServiceProvider; |
| 68 | 73 | use Give\Shims\ShimsServiceProvider; |
| 74 | +use Give\Subscriptions\Repositories\SubscriptionRepository; | |
| 75 | +use Give\Subscriptions\ServiceProvider as SubscriptionServiceProvider; | |
| 69 | 76 | use Give\TestData\ServiceProvider as TestDataServiceProvider; |
| 70 | 77 | use Give\Tracking\TrackingServiceProvider; |
| 71 | 78 | |
| 72 | 79 | // Exit if accessed directly. |
| @@ -76,8 +83,9 @@ | ||
| 76 | 83 | |
| 77 | 84 | /** |
| 78 | 85 | * Main Give Class |
| 79 | 86 | * |
| 87 | + * @since 2.19.6 add $donations, $subscriptions, and replace $donors class with DonorRepositoryProxy | |
| 80 | 88 | * @since 2.8.0 build in a service container |
| 81 | 89 | * @since 1.0 |
| 82 | 90 | * |
| 83 | 91 | * @property-read Give_API $api |
| @@ -82,9 +90,8 @@ | ||
| 82 | 90 | * |
| 83 | 91 | * @property-read Give_API $api |
| 84 | 92 | * @property-read Give_Async_Process $async_process |
| 85 | 93 | * @property-read Give_Comment $comment |
| 86 | - * @property-read Give_DB_Donors $donors | |
| 87 | 94 | * @property-read Give_DB_Donor_Meta $donor_meta |
| 88 | 95 | * @property-read Give_Emails $emails |
| 89 | 96 | * @property-read Give_Email_Template_Tags $email_tags |
| 90 | 97 | * @property-read Give_DB_Form_Meta $form_meta |
| @@ -98,12 +105,15 @@ | ||
| 98 | 105 | * @property-read Templates $templates |
| 99 | 106 | * @property-read Give_Scripts $scripts |
| 100 | 107 | * @property-read Give_DB_Sequential_Ordering $sequential_donation_db |
| 101 | 108 | * @property-read Give_Sequential_Donation_Number $seq_donation_number |
| 102 | - * @property-read Give_Session $session | |
| 103 | - * @property-read Give_DB_Sessions $session_db | |
| 104 | - * @property-read Give_Tooltips $tooltips | |
| 105 | - * @property-read DonationFormsRepository $donationFormsRepository | |
| 109 | + * @property-read Give_Session $session | |
| 110 | + * @property-read Give_DB_Sessions $session_db | |
| 111 | + * @property-read Give_Tooltips $tooltips | |
| 112 | + * @property-read DonationRepository $donations | |
| 113 | + * @property-read DonorRepositoryProxy $donors | |
| 114 | + * @property-read SubscriptionRepository $subscriptions | |
| 115 | + * @property-read DonationFormsRepository $donationFormsRepository | |
| 106 | 116 | * @property-read Give_Recurring_DB_Subscription_Meta $subscription_meta |
| 107 | 117 | * |
| 108 | 118 | * @mixin Container |
| 109 | 119 | */ |
| @@ -146,8 +156,9 @@ | ||
| 146 | 156 | */ |
| 147 | 157 | private $container; |
| 148 | 158 | |
| 149 | 159 | /** |
| 160 | + * @since 2.19.6 added Donors, Donations, and Subscriptions | |
| 150 | 161 | * @since 2.8.0 |
| 151 | 162 | * |
| 152 | 163 | * @var array Array of Service Providers to load |
| 153 | 164 | */ |
| @@ -170,8 +181,11 @@ | ||
| 170 | 181 | LicenseServiceProvider::class, |
| 171 | 182 | Give\Email\ServiceProvider::class, |
| 172 | 183 | DonationSummaryServiceProvider::class, |
| 173 | 184 | PaymentGatewaysServiceProvider::class, |
| 185 | + DonationServiceProvider::class, | |
| 186 | + DonorsServiceProvider::class, | |
| 187 | + SubscriptionServiceProvider::class, | |
| 174 | 188 | DonationFormsServiceProvider::class, |
| 175 | 189 | PromotionsServiceProvider::class, |
| 176 | 190 | LegacySubscriptionsServiceProvider::class |
| 177 | 191 | ]; |
| @@ -287,10 +301,10 @@ | ||
| 287 | 301 | */ |
| 288 | 302 | private function setup_constants() |
| 289 | 303 | { |
| 290 | 304 | // Plugin version. |
| 291 | - if ( ! defined('GIVE_VERSION')) { | |
| 292 | - define('GIVE_VERSION', '2.19.5'); | |
| 305 | + if (!defined('GIVE_VERSION')) { | |
| 306 | + define('GIVE_VERSION', '2.19.6'); | |
| 293 | 307 | } |
| 294 | 308 | |
| 295 | 309 | // Plugin Root File. |
| 296 | 310 | if (!defined('GIVE_PLUGIN_FILE')) { |