Skip to content

Commit 9e680f9

Browse files
committed
2 parents fc64e84 + 9b50440 commit 9e680f9

8 files changed

Lines changed: 10 additions & 10 deletions

disciple-tools-webform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*Plugin Name: Disciple.Tools - Webform
44
* Plugin URI: https://github.com/DiscipleTools/disciple-tools-webform
55
* Description: Build forms for you websites. Submitted forms will create contacts in Disciple.Tools.
6-
* Version: 6.6.2
6+
* Version: 6.6.3
77
* Text Domain: disciple-tools-webform
88
* Domain Path: /languages
99
* Author name: Disciple.Tools

dt-mapping/class-migration-engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static function get_current_db_migration(){
144144

145145
class DT_Mapping_Module_Migration_Lock_Exception extends Exception
146146
{
147-
public function __construct( $message = null, $code = 0, Exception $previous = null ) {
147+
public function __construct( $message = null, $code = 0, ?Exception $previous = null ) {
148148
/*
149149
* Instead of throwing a simple exception that the migration lock is
150150
* held, it would be good for the user to if there any previous errors,

dt-mapping/geocode-api/location-grid-geocoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ public function query_level_by_lnglat( float $longitude, float $latitude, int $l
642642
return $query;
643643
}
644644

645-
public function query_lowest_level_by_lnglat( float $longitude, float $latitude, string $country_code = null ): array {
645+
public function query_lowest_level_by_lnglat( float $longitude, float $latitude, ?string $country_code = null ): array {
646646
global $wpdb;
647647

648648
if ( is_null( $country_code ) ) {

dt-mapping/location-grid-meta.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static function add_location_grid_meta( $post_id, array $location_grid_me
168168
return $wpdb->insert_id;
169169
}
170170

171-
public static function delete_location_grid_meta( int $post_id, $type, int $value, array $existing_post = null ) {
171+
public static function delete_location_grid_meta( int $post_id, $type, int $value, ?array $existing_post = null ) {
172172
global $wpdb;
173173

174174
$status = false;
@@ -274,7 +274,7 @@ public static function add_user_location_grid_meta( $user_id, $location_grid_met
274274
return $wpdb->insert_id;
275275
}
276276

277-
public static function delete_user_location_grid_meta( int $user_id, $type, $grid_meta_id, array $existing_post = null ) {
277+
public static function delete_user_location_grid_meta( int $user_id, $type, $grid_meta_id, ?array $existing_post = null ) {
278278
global $wpdb;
279279

280280
$status = false;

dt-mapping/migrations/0006-add-grid-to-db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function up() {
5656
$line = fgets( $fp, 2048 );
5757
$count++;
5858

59-
$data = str_getcsv( $line, "\t" );
59+
$data = str_getcsv( $line, "\t", '"', '\\' );
6060

6161
$data_sql = dt_array_to_sql( $data );
6262

includes/class-migration-engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected static function sanity_check_expected_tables( array $expected_tables )
140140

141141
class DT_Webform_Migration_Lock_Exception extends Exception
142142
{
143-
public function __construct( $message = null, $code = 0, Exception $previous = null ) {
143+
public function __construct( $message = null, $code = 0, ?Exception $previous = null ) {
144144
/*
145145
* Instead of throwing a simple exception that the migration lock is
146146
* held, it would be good for the user to if there any previous errors,

includes/utilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static function get_contact_defaults( $force = false ) {
128128
}
129129
}
130130

131-
public static function get_theme( string $theme = 'wide-heavy', string $token = null ) {
131+
public static function get_theme( string $theme = 'wide-heavy', ?string $token = null ) {
132132

133133
$meta = self::get_form_meta( $token );
134134
if ( empty( $meta ) ) {

version-control.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Disciple.Tools - Webform",
3-
"version": "6.6.2",
4-
"last_updated": "2024-12",
3+
"version": "6.6.3",
4+
"last_updated": "2025-06",
55
"author": "Disciple.Tools",
66
"author_homepage": "https://disciple.tools",
77
"git_owner": "DiscipleTools",

0 commit comments

Comments
 (0)