Changeset 3023689
- Timestamp:
- 01/18/2024 07:24:09 PM (6 months ago)
- Location:
- hdforms/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
hdforms/trunk/includes/functions.php
r3001345 r3023689 93 93 } 94 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 95 120 function hdf_sanitize_fields($data) 96 121 { 97 98 function sanitize_items($items)99 {100 for ($i = 0; $i < count($items); $i++) {101 foreach ($items[$i] as $k => $v) {102 if ($k == "content") {103 $items[$i]->$k = wp_kses_post($v);104 } elseif ($k == "children") {105 $items[$i]->$k = sanitize_items($v);106 } elseif ($k == "meta") {107 foreach ($v as $kk => $vv) {108 $items[$i]->$k->$kk = sanitize_text_field($vv);109 }110 } elseif ($k == "options") {111 for ($x = 0; $x < count($v); $x++) {112 $items[$i]->$k[$x]->label = sanitize_text_field($items[$i]->$k[$x]->label);113 $items[$i]->$k[$x]->value = sanitize_text_field($items[$i]->$k[$x]->value);114 }115 } else {116 $items[$i]->$k = sanitize_text_field($v);117 }118 }119 }120 return $items;121 }122 123 122 return sanitize_items($data); 124 123 } -
hdforms/trunk/index.php
r3001347 r3023689 6 6 * Author: Harmonic Design 7 7 * Author URI: https://harmonicdesign.ca/ 8 * Version: 1. 38 * Version: 1. 9 9 */ 10 10 … … 24 24 25 25 if (!defined('HDF_PLUGIN_VERSION')) { 26 define('HDF_PLUGIN_VERSION', 202 31124);26 define('HDF_PLUGIN_VERSION', 202); 27 27 } 28 28 -
hdforms/trunk/readme.txt
r3001345 r3023689 3 3 Tags: hdforms, form, form builder, contact, contact form, hdf, hd form, hdform, contact builder, contact form builder, send contact form 4 4 Requires at least: 5.2.0 5 Tested up to: 6.4. 16 Stable tag: 1. 35 Tested up to: 6.4. 6 Stable tag: 1. 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 99 99 100 100 == Changelog == 101 102 103 104 101 105 = 1.3 = 102 106 * Nov 24 2023 … … 143 147 144 148 == Upgrade Notice == 145 146 = 1 =147 * NOTE: If upgrading from < 0.9, your old forms will be auto upgraded to the new format, but you will need to redo any columns or custom triggers148 149 * Bug fixes and Improvements
Note: See TracChangeset
for help on using the changeset viewer.