PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.6.1
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.6.1
1.6.1 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 +22 -14 1.5.0 → 1.6.1 View file →
@@ -75,9 +75,9 @@
75 75 [
76 76 'id' => 'sd-configure-gateway',
77 77 'variant' => 'error',
78 78 // translators: the <a></a> tags wrap the inline link text and must be kept intact.
79 - 'message' => __( 'No payment gateway is connected, so your forms cannot accept donations yet. <a>Set up a payment gateway</a> to get started.', 'suredonation' ),
79 + 'message' => __( 'Your forms cannot accept donations yet. <a>Connect Stripe or PayPal</a> and you can start accepting them today.', 'suredonation' ),
80 80 'link' => [
81 81 // Deep-link to the gateway connect screen, matching the dashboard Quick Access entry.
82 82 'url' => Payment_Helper::get_settings_url( 'stripe' ),
83 83 ],
@@ -111,9 +111,9 @@
111 111 [
112 112 'id' => 'sd-test-mode-react',
113 113 'variant' => 'error',
114 114 // translators: the <a></a> tags wrap the inline link text and must be kept intact.
115 - 'message' => __( 'SureDonation is in test mode, so no real donations are being processed. <a>Switch to live mode</a> to start accepting them.', 'suredonation' ),
115 + 'message' => __( 'Supporters cannot donate while your site is in test mode. Anything they try now is a test and no money reaches you. <a>Switch to live mode</a> when you are ready to accept real donations.', 'suredonation' ),
116 116 'link' => [
117 117 'url' => $settings_url,
118 118 ],
119 119 'event' => Analytics::TRACKED_EVENTS['test_mode'],
@@ -615,28 +615,36 @@
615 615 } catch ( \Throwable $e ) {
616 616 $has_givewp_data = false;
617 617 }
618 618
619 + $has_charitable_data = false;
620 + try {
621 + $has_charitable_data = \SureDonation\Inc\Import\Charitable\Source::get_instance()->has_charitable_data();
622 + } catch ( \Throwable $e ) {
623 + $has_charitable_data = false;
624 + }
625 +
619 626 wp_localize_script(
620 627 'suredonation-onboarding',
621 628 'suredonation_onboarding',
622 629 [
623 - 'apiUrl' => rest_url( 'suredonation/v1' ),
624 - 'nonce' => wp_create_nonce( 'wp_rest' ),
625 - 'pluginUrl' => SUREDONATION_URL,
626 - 'adminUrl' => admin_url(),
627 - 'dashboardUrl' => admin_url( 'admin.php?page=suredonation' ),
628 - 'paymentsUrl' => Payment_Helper::get_settings_url( 'stripe' ),
629 - 'campaignsUrl' => admin_url( 'admin.php?page=suredonation#/campaigns' ),
630 - 'docsUrl' => 'https://suredonation.com/docs/',
631 - 'isProActive' => $is_pro,
632 - 'hasGiveWPData' => $has_givewp_data,
633 - 'currentUser' => [
630 + 'apiUrl' => rest_url( 'suredonation/v1' ),
631 + 'nonce' => wp_create_nonce( 'wp_rest' ),
632 + 'pluginUrl' => SUREDONATION_URL,
633 + 'adminUrl' => admin_url(),
634 + 'dashboardUrl' => admin_url( 'admin.php?page=suredonation' ),
635 + 'paymentsUrl' => Payment_Helper::get_settings_url( 'stripe' ),
636 + 'campaignsUrl' => admin_url( 'admin.php?page=suredonation#/campaigns' ),
637 + 'docsUrl' => 'https://suredonation.com/docs/',
638 + 'isProActive' => $is_pro,
639 + 'hasGiveWPData' => $has_givewp_data,
640 + 'hasCharitableData' => $has_charitable_data,
641 + 'currentUser' => [
634 642 'firstName' => $current_user ? $current_user->first_name : '',
635 643 'lastName' => $current_user ? $current_user->last_name : '',
636 644 'email' => $current_user ? $current_user->user_email : '',
637 645 ],
638 - 'privacyUrl' => 'https://suredonation.com/privacy-policy/',
646 + 'privacyUrl' => 'https://suredonation.com/privacy-policy/',
639 647 ]
640 648 );
641 649
642 650 // Shim suredonation_admin on the onboarding page too — shared API