← All changes
|
includes/fields/default-fields/campaign-fields.php
+11
-11
1.7.0.14
→
1.8.13
View file →
| @@ -3,12 +3,12 @@ | ||
| 3 | 3 | * Returns an array of all the default campaign fields. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Campaign Fields |
| 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.6.0 |
| 10 | - * @version 1.6.54 | |
| 10 | + * @version 1.8.9.1 | |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | // Exit if accessed directly. |
| 14 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -86,13 +86,13 @@ | ||
| 86 | 86 | ), |
| 87 | 87 | 'email_tag' => array( |
| 88 | 88 | 'tag' => 'campaign_end_date', |
| 89 | 89 | 'description' => __( 'The end date of the campaign', 'charitable' ), |
| 90 | - 'preview' => date( get_option( 'date_format', 'd/m/Y' ) ), | |
| 90 | + 'preview' => date( get_option( 'date_format', 'd/m/Y' ) ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 91 | 91 | ), |
| 92 | 92 | 'show_in_export' => true, |
| 93 | 93 | ), |
| 94 | - 'end_time' => array( | |
| 94 | + 'end_time' => array( | |
| 95 | 95 | 'label' => __( 'End Date Timestamp', 'charitable' ), |
| 96 | 96 | 'data_type' => 'core', |
| 97 | 97 | 'value_callback' => false, |
| 98 | 98 | 'donation_form' => false, |
| @@ -122,19 +122,19 @@ | ||
| 122 | 122 | ), |
| 123 | 123 | 'email_tag' => false, |
| 124 | 124 | 'show_in_export' => false, |
| 125 | 125 | ), |
| 126 | - 'minimum_donation_amount' => array( | |
| 126 | + 'minimum_donation_amount' => array( | |
| 127 | 127 | 'label' => __( 'Minimum Donation Amount', 'charitable' ), |
| 128 | 128 | 'data_type' => 'meta', |
| 129 | 129 | 'value_callback' => false, |
| 130 | 130 | 'admin_form' => array( |
| 131 | - 'section' => 'campaign-donation-options', | |
| 132 | - 'type' => 'number', | |
| 133 | - 'title' => __( 'Minimum Donation Amount', 'charitable' ), | |
| 134 | - 'view' => 'metaboxes/campaign-minimum-donation-amount', | |
| 135 | - 'description' => __( 'Leave empty to allow no restrictons on how small the donation can be.', 'charitable' ), | |
| 136 | - 'priority' => 11, | |
| 131 | + 'section' => 'campaign-donation-options', | |
| 132 | + 'type' => 'number', | |
| 133 | + 'title' => __( 'Minimum Donation Amount', 'charitable' ), | |
| 134 | + 'view' => 'metaboxes/campaign-minimum-donation-amount', | |
| 135 | + 'description' => __( 'Leave empty to allow no restrictions on how small the donation can be.', 'charitable' ), | |
| 136 | + 'priority' => 11, | |
| 137 | 137 | ), |
| 138 | 138 | 'email_tag' => false, |
| 139 | 139 | 'show_in_export' => true, |
| 140 | 140 | ), |