Skip to content

Commit

Permalink
Preparing 2.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
MocioF committed Sep 2, 2022
1 parent 5e90680 commit ecb4d2e
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ node_modules
npm-debug.log
docs
.sass-cache
/.phpunit.result.cache
/.phpunit.result.cache
phpstan.neon
2 changes: 1 addition & 1 deletion admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function gcmi_admin_update_db() {
// translators: %1$s is a date string; %2$s is a time string.
esc_html__( 'Last remote files update check on %1$s at %2$s.', 'campi-moduli-italiani' ),
wp_date( $date_format, $last_check ),
wp_date( $time_format, $last_check ),
wp_date( $time_format, $last_check )
);
echo '<p id="gcmi_table_footer" class="alignleft"><span id="gcmi_last_check">' . $last_check_string . '</span></p>';
}
Expand Down
4 changes: 2 additions & 2 deletions campi-moduli-italiani.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
* Domain Path: /languages
* Plugin URI: https://wordpress.org/plugins/campi-moduli-italiani/
* Description: (Generator of) Fields for Italian CF7 and wpforms modules. The plugin generates specific fields for Italian forms created with Contact Form 7 and wpforms. This version makes available 4 form-tags for CF7 and 2 fields for wpforms: a cascade selection for an Italian municipality (CF7 + wpforms), a select for a state (CF7 + wpforms), an Italian tax code field with validation (CF7 only), a hidden field that allows you to digitally sign e-mails to ensure that they have been sent via the form (CF7 only). The databases are taken from the Istat and Agenzia delle entrate websites. The digital signature on the form data uses the RSA algorithm with a 4096 bit private key. <strong> Activation can take a few minutes to download the updated data and to import them into the database </strong>.
* Version: 2.0.8
* Version: 2.1.0
* Author: Giuseppe Foti
* Author URI: https://bertocchi28.ddns.net/
* License: GPLv2 or later
**/

defined( 'ABSPATH' ) || die( 'you do not have access to this page!' );

define( 'GCMI_VERSION', '2.0.8' );
define( 'GCMI_VERSION', '2.1.0' );
define( 'GCMI_MINIMUM_WP_VERSION', '5.9' );
define( 'GCMI_MINIMUM_PHP_VERSION', '7.2' );
define( 'GCMI_MINIMUM_CF7_VERSION', '5.1.7' );
Expand Down
2 changes: 1 addition & 1 deletion modules/comune/class-wpforms-field-comune.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ public function field_display( $field, $deprecated, $form_data ): void {
}
$container['attr']['name'] = $container_name . '[IDCom]';

// è impostato il valore predefinito
// è impostato il valore predefinito.
if ( isset( $field['default_value'] ) && '' !== strval( $field['default_value'] ) ) {
$default_value = strval( $field['default_value'] );
if ( GCMI_COMUNE::is_valid_cod_comune( $default_value ) ) {
Expand Down
1 change: 1 addition & 0 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true
include.path=${php.global.include.path}
php.version=PHP_81
source.encoding=UTF-8
Expand Down
17 changes: 0 additions & 17 deletions phpstan.neon

This file was deleted.

22 changes: 13 additions & 9 deletions readme-it.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== Campi Moduli Italiani ===
Contributors: mociofiletto
Donate link: https://paypal.me/GiuseppeF77
Tags: contact form 7, wpforms, comuni italiani, codice fiscale, firma digitale
Tags: Contact Form 7, WPForms, comuni italiani, codice fiscale, firma digitale, multisite
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 7.2
Stable tag: 2.0.8
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html

Expand Down Expand Up @@ -126,19 +126,23 @@ Puoi inviare una richiesta nel nostro repository Github:

== Changelog ==
= 2.1.0 =
* Modificato il metodo HTTP da HEAD a GET per ottenere la data di aggiornamento dal sito ISTAT
* Corretto l'errore che consentiva l'invio del wpform senza che il comune (indicato come richiesto) venisse selezionato
* Aggiunto controllo sicurezza tramite un none nel codice ajax di comune
* Aggiunto l'utilizzo della cache ad oggetti di WordPress alle query sul db
* Sistemato il cambio di markup nei controlli del form per CF7 v.5.6
* Aggiunta possibilità di inserire un valore di default per "stato" in wpforms; modificato l'ordinamento delle scelte (ora alfabetico)
* Modificato il metodo HTTP da HEAD a GET per ottenere la data di aggiornamento dei file dal sito web dell'ISTAT
* Corretto il bug in wpforms che consentiva l'invio del modulo senza che il comune (indicato come richiesto) venisse selezionato
* Aggiunto controllo sicurezza tramite un nonce nel codice AJAX di comune
* Aggiunto l'utilizzo della cache degli oggetti di WordPress alle query sul db
* Corretto il cambio di markup nei controlli del modulo per CF7 v.5.6
* Aggiunta possibilità di inserire un valore predefinito per "stato" in wpforms; modificato l'ordinamento delle scelte (ora alfabetico)
* Aggiunta possibilità di attivazione multisito
* Utilizzate versioni minificate di script e stili
* Il valore preimpostato del comune del form-tag per CF7 può ora essere impostato indicando anche il nome del Comune
* Aggiunta possibilità di inserire un valore di default per "comune" in wpforms

= 2.0.8 =
* Corretto bug nel campo CF

= 2.0.7 =
* Aggiornato per funzionare con Contact Form 7 > 5.5
* Correzioni di bug minori
* Corretti bug minori

= 2.0.6 =
* Corretto errore nel controllo dell'ultima data di aggiornamento dei file sul sito ISTAT
Expand Down
20 changes: 12 additions & 8 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== Campi Moduli Italiani ===
Contributors: mociofiletto
Donate link: https://paypal.me/GiuseppeF77
Tags: contact form 7, wpforms, comuni italiani, codice fiscale, firma digitale
Tags: Contact Form 7, WPForms, comuni italiani, codice fiscale, firma digitale, multisite
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 7.2
Stable tag: 2.0.8
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html

Expand Down Expand Up @@ -129,17 +129,21 @@ You can create an issue in our Github repo:
== Changelog ==
= 2.1.0 =
* Changed method to get remote file update time on ISTAT website from HEAD to GET
* Fixed bug in wpforms allowing form submission without a full selection in municipality
* Securing comune's ajax with nonce
* Adding use of WordPress Object Cache to db queries
* Fixing markup changes in form control for CF7 v.5.6
* Adding default value in wpforms for "stato"; changed order of choices (now unsing denominations)
* Fixed bug in wpforms allowing form submission without a full selection of a municipality (marked as compulsory)
* Secured comune's ajax with nonce
* Added use of WordPress Object Cache to db queries
* Fixed markup changes in form control for CF7 v.5.6
* Added default value in wpforms for "stato"; changed order of choices (now using denominations)
* Added multisite activation feature
* Switch to minified scripts and styles
* Default value in CF7 comune form-tag can be set by municipality's name
* Added default value in wpforms for "comune"

= 2.0.8 =
* Fixed bug in cf atts

= 2.0.7 =
* Upddated to work in Contact Form 7 > 5.5
* Updated to work in Contact Form 7 > 5.5
* Minor bugs fixed

= 2.0.6 =
Expand Down

0 comments on commit ecb4d2e

Please sign in to comment.