PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
← All changes | includes/admin/settings/class-charitable-export-settings.php +2 -2 1.7.0.7 → 1.8.13 View file →
@@ -3,9 +3,9 @@
3 3 * Charitable Export Settings UI.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Export_Settings
6 6 * @author David Bisset
7 - * @copyright Copyright (c) 2022, WP Charitable LLC
7 + * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.7.0.7
10 10 * @version 1.6.0
11 11 */
@@ -100,9 +100,9 @@
100 100 $campaigns[ $post->ID ] = $post->post_title;
101 101 if ( $include_donations ) {
102 102 $donations = charitable_get_table( 'campaign_donations' )->get_donations_on_campaign( $post->ID );
103 103 $donation_count = count( $donations );
104 - $plural = ( ( $donation_count ) > 1 ) ? 's' : '';
104 + $plural = ( ( $donation_count > 1 ) || 0 === $donation_count ) ? 's' : '';
105 105 $campaigns[ $post->ID ] = $post->post_title . ' (' . count( $donations ) . ' donation' . $plural . ') ';
106 106 }
107 107 endforeach;
108 108