Plugin Directory

Changeset 3478287


Ignore:
Timestamp:
03/09/2026 03:47:19 PM (3 weeks ago)
Author:
trainingbusinesspros
Message:

Update to version 4.3.2 from GitHub

Location:
groundhogg
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • groundhogg/tags/4.3.2/README.txt

    r3476690 r3478287  
    77Tested up to: 6.9
    88Requires PHP: 7.1
    9 Stable tag: 4.3.1
     9Stable tag: 4.3.2
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl.md
     
    378378
    379379== Changelog ==
     380
     381= 4.3.2 (2026-03-09) =
     382* FIXED Sanitization issue with number fields causing numbers with more than 4 digits not to save.
    380383
    381384= 4.3.1 (2026-03-06) =
  • groundhogg/tags/4.3.2/groundhogg.php

    r3476690 r3478287  
    44 * Plugin URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    55 * Description: CRM and marketing automation for WordPress
    6  * Version: 4.3.1
     6 * Version: 4.3.2
    77 * Author: Groundhogg Inc.
    88 * Author URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2525if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    2626
    27 define( 'GROUNDHOGG_VERSION', '4.3.1' );
     27define( 'GROUNDHOGG_VERSION', '4.3.2' );
    2828define( 'GROUNDHOGG_PREVIOUS_STABLE_VERSION', '4.3' );
    2929
  • groundhogg/tags/4.3.2/includes/better-meta-compat.php

    r3476690 r3478287  
    6262            return sanitize_textarea_field( $value );
    6363        case 'number':
    64             return number_format( (float) $value, $field['decimals'] ?? 0 );
     64//          return number_format( (float) $value, $field['decimals'] ?? 0, '.', '' );
     65            return number_format( (float) $value, $field['decimals'] ?? 0, '.', '' );
    6566        case 'time':
    66             return date( 'H:i:s', strtotime( $value ) );
     67            try {
     68                return ( new DateTimeHelper( $value ) )->format( 'H:i:s' );
     69            } catch ( \DateException $e ) {
     70                return '';
     71            }
    6772        case 'date':
    68             return date( 'Y-m-d', strtotime( $value ) );
     73            try {
     74                return ( new DateTimeHelper( $value ) )->ymd();
     75            } catch ( \DateException $e ) {
     76                return '';
     77            }
    6978        case 'datetime':
    70             return date( 'Y-m-d H:i:s', strtotime( $value ) );
     79            try {
     80                return ( new DateTimeHelper( $value ) )->ymdhis();
     81            } catch ( \DateException $e ) {
     82                return '';
     83            }
    7184        case 'dropdown':
    7285            // Multiple options can be selected
  • groundhogg/trunk/README.txt

    r3476690 r3478287  
    77Tested up to: 6.9
    88Requires PHP: 7.1
    9 Stable tag: 4.3.1
     9Stable tag: 4.3.2
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl.md
     
    378378
    379379== Changelog ==
     380
     381= 4.3.2 (2026-03-09) =
     382* FIXED Sanitization issue with number fields causing numbers with more than 4 digits not to save.
    380383
    381384= 4.3.1 (2026-03-06) =
  • groundhogg/trunk/groundhogg.php

    r3476690 r3478287  
    44 * Plugin URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
    55 * Description: CRM and marketing automation for WordPress
    6  * Version: 4.3.1
     6 * Version: 4.3.2
    77 * Author: Groundhogg Inc.
    88 * Author URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
     
    2525if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    2626
    27 define( 'GROUNDHOGG_VERSION', '4.3.1' );
     27define( 'GROUNDHOGG_VERSION', '4.3.2' );
    2828define( 'GROUNDHOGG_PREVIOUS_STABLE_VERSION', '4.3' );
    2929
  • groundhogg/trunk/includes/better-meta-compat.php

    r3476690 r3478287  
    6262            return sanitize_textarea_field( $value );
    6363        case 'number':
    64             return number_format( (float) $value, $field['decimals'] ?? 0 );
     64//          return number_format( (float) $value, $field['decimals'] ?? 0, '.', '' );
     65            return number_format( (float) $value, $field['decimals'] ?? 0, '.', '' );
    6566        case 'time':
    66             return date( 'H:i:s', strtotime( $value ) );
     67            try {
     68                return ( new DateTimeHelper( $value ) )->format( 'H:i:s' );
     69            } catch ( \DateException $e ) {
     70                return '';
     71            }
    6772        case 'date':
    68             return date( 'Y-m-d', strtotime( $value ) );
     73            try {
     74                return ( new DateTimeHelper( $value ) )->ymd();
     75            } catch ( \DateException $e ) {
     76                return '';
     77            }
    6978        case 'datetime':
    70             return date( 'Y-m-d H:i:s', strtotime( $value ) );
     79            try {
     80                return ( new DateTimeHelper( $value ) )->ymdhis();
     81            } catch ( \DateException $e ) {
     82                return '';
     83            }
    7184        case 'dropdown':
    7285            // Multiple options can be selected
Note: See TracChangeset for help on using the changeset viewer.