Plugin Directory

Changeset 3023689

Timestamp:
01/18/2024 07:24:09 PM (6 months ago)
Author:
Harmonic_Design
Message:

update to 1.4

Location:
hdforms/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hdforms/trunk/includes/functions.php

    r3001345 r3023689  
    9393}
    9494
     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
    95120function hdf_sanitize_fields($data)
    96121{
    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 
    123122    return sanitize_items($data);
    124123}
  • hdforms/trunk/index.php

    r3001347 r3023689  
    66    * Author: Harmonic Design
    77    * Author URI: https://harmonicdesign.ca/
    8     * Version: 1.3
     8    * Version: 1.
    99*/
    1010
     
    2424
    2525if (!defined('HDF_PLUGIN_VERSION')) {
    26     define('HDF_PLUGIN_VERSION', 20231124);
     26    define('HDF_PLUGIN_VERSION', 202);
    2727}
    2828
  • hdforms/trunk/readme.txt

    r3001345 r3023689  
    33Tags: hdforms, form, form builder, contact, contact form, hdf, hd form, hdform, contact builder, contact form builder, send contact form
    44Requires at least: 5.2.0
    5 Tested up to: 6.4.1
    6 Stable tag: 1.3
     5Tested up to: 6.4.
     6Stable tag: 1.
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    9999
    100100== Changelog ==
     101
     102
     103
     104
    101105= 1.3 =
    102106* Nov 24 2023
     
    143147
    144148== 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 triggers
    148149*  Bug fixes and Improvements
Note: See TracChangeset for help on using the changeset viewer.