PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.1.0
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.1.0
1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
← All changes | inc/admin/admin.php +9 -0 1.0.01.1.0 View file →
@@ -9,8 +9,10 @@
9 9
10 10 use SureDonation\Inc\Helper;
11 11 use SureDonation\Inc\Onboarding;
12 12 use SureDonation\Inc\Pdf\Pdf_Utils;
13 +use SureDonation\Inc\Payments\Payment_Helper;
14 +use SureDonation\Inc\Payments\PayPal\PayPal_Helper;
13 15 use SureDonation\Inc\Traits\Get_Instance;
14 16
15 17 // Exit if accessed directly.
16 18 if ( ! defined( 'ABSPATH' ) ) {
@@ -203,8 +205,15 @@
203 205 'plugin_installer_nonce' => wp_create_nonce( 'updates' ),
204 206 'plugin_manager_nonce' => wp_create_nonce( 'suredonation_plugin_manager' ),
205 207 'has_abilities_api' => class_exists( 'WP_Ability' ),
206 208 'current_user_login' => wp_get_current_user()->user_login,
209 + // Bootstrap settings data so the General currency list and the
210 + // PayPal connection state render synchronously (no post-mount
211 + // fetch flicker). PayPal data is the non-sensitive subset only.
212 + 'payments' => [
213 + 'currencies' => Payment_Helper::get_currencies_list(),
214 + 'paypal' => PayPal_Helper::get_connection_state(),
215 + ],
207 216 ]
208 217 );
209 218 }
210 219