PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← All changes | includes/admin/forms/class-metabox-form-data.php +6 -0 4.16.1 → 4.17.0 View file →
@@ -1094,8 +1094,10 @@
1094 1094
1095 1095 /**
1096 1096 * Save form template setting handler
1097 1097 *
1098 + * @since 4.16.2 Normalize file field values as URLs when saving form template settings.
1099 + *
1098 1100 * @param string $meta_key
1099 1101 * @param string $new_template
1100 1102 * @param int $formID
1101 1103 */
@@ -1142,8 +1144,12 @@
1142 1144 break;
1143 1145
1144 1146 case 'donation_limit':
1145 1147 $value = $options[ $group->id ][ $field->id ];
1148 + break;
1149 +
1150 + case 'file':
1151 + $value = esc_url_raw( $options[ $group->id ][ $field->id ] );
1146 1152 break;
1147 1153
1148 1154 case 'group':
1149 1155 /* @var \Give\FormAPI\Form\Group $field */