Plugin Directory

Changeset 3177301


Ignore:
Timestamp:
10/28/2024 03:24:31 PM (17 months ago)
Author:
tkc49
Message:

Update to version 2.27.6 from GitHub

Location:
kintone-form
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kintone-form/tags/2.27.6/kintone-form.php

    r3137588 r3177301  
    44 * Plugin URI:
    55 * Description: This plugin is an addon for "Contact Form 7".
    6  * Version:     2.27.5
     6 * Version:     2.27.6
    77 * Author:      Takashi Hosoya
    88 * Author URI:  http://ht79.info/
     
    1010 * Text Domain: kintone-form
    1111 * Domain Path: /languages
     12 *
     13 * @package kintone-form
    1214 */
    1315
     
    3133
    3234define( 'KINTONE_FORM_URL', plugins_url( '', __FILE__ ) );
    33 define( 'KINTONE_FORM_PATH', dirname( __FILE__ ) );
     35define( 'KINTONE_FORM_PATH', __DIR__ );
    3436
    3537$data = get_file_data(
     
    7072$kintone_form = new Kintone_Form();
    7173$kintone_form->register();
    72 
    73 
  • kintone-form/tags/2.27.6/modules/radio.php

    r2897736 r3177301  
    11<?php
     2/**
     3 * Radio module.
     4 *
     5 * @package kintone-form
     6 */
    27
     8/**
     9 * Radio module.
     10 */
    311class KintoneFormRadio {
    412
     
    816    public static function get_instance() {
    917        /**
    10          * a variable that keeps the sole instance.
     18         * A variable that keeps the sole instance.
    1119         */
    1220        static $instance;
     
    3644        if ( in_array( $cf7_mail_tag, Kintone_Form::get_cf7_special_tags(), true ) ) {
    3745            $mail_tag = new WPCF7_MailTag(
    38                 sprintf( '[%s]', $cf7_mail_tag ), $cf7_mail_tag, ''
     46                sprintf( '[%s]', $cf7_mail_tag ),
     47                $cf7_mail_tag,
     48                ''
    3949            );
    4050
     
    4454            if ( isset( $cf7_send_data[ $cf7_mail_tag ] ) ) {
    4555                if ( is_array( $cf7_send_data[ $cf7_mail_tag ] ) ) {
    46                     $value = $cf7_send_data[ $cf7_mail_tag ][0];
     56                    $value = ! empty( $cf7_send_data[ $cf7_mail_tag ] ) ? $cf7_send_data[ $cf7_mail_tag ][0] : '';
    4757                } else {
    4858                    $value = $cf7_send_data[ $cf7_mail_tag ];
     
    5464
    5565        return $return_data;
    56 
    5766    }
    5867}
  • kintone-form/tags/2.27.6/readme.txt

    r3137588 r3177301  
    77Requires at least: 6.3
    88Tested up to: 6.5.4
    9 Stable tag: 2.27.5
     9Stable tag: 2.27.6
    1010Requires PHP: 7.4
    1111License: GPLv2 or later
     
    5050
    5151== Changelog ==
     52
     532.27.6 (2024-10-29)
     54* Fixed an issue where radio buttons could be empty when using Conditional Fields for Contact Form 7
     55
    52562.27.5 (2024-08-19)
    5357* Fixed an issue when using the Conditional Fields for Contact Form 7 plugin to set form radio buttons to kintone dropdown fields. Under specific conditions, the required check for radio buttons was not functioning correctly, resulting in empty array data being sent to kintone. This problem has been resolved.
  • kintone-form/trunk/kintone-form.php

    r3137588 r3177301  
    44 * Plugin URI:
    55 * Description: This plugin is an addon for "Contact Form 7".
    6  * Version:     2.27.5
     6 * Version:     2.27.6
    77 * Author:      Takashi Hosoya
    88 * Author URI:  http://ht79.info/
     
    1010 * Text Domain: kintone-form
    1111 * Domain Path: /languages
     12 *
     13 * @package kintone-form
    1214 */
    1315
     
    3133
    3234define( 'KINTONE_FORM_URL', plugins_url( '', __FILE__ ) );
    33 define( 'KINTONE_FORM_PATH', dirname( __FILE__ ) );
     35define( 'KINTONE_FORM_PATH', __DIR__ );
    3436
    3537$data = get_file_data(
     
    7072$kintone_form = new Kintone_Form();
    7173$kintone_form->register();
    72 
    73 
  • kintone-form/trunk/modules/radio.php

    r2897736 r3177301  
    11<?php
     2/**
     3 * Radio module.
     4 *
     5 * @package kintone-form
     6 */
    27
     8/**
     9 * Radio module.
     10 */
    311class KintoneFormRadio {
    412
     
    816    public static function get_instance() {
    917        /**
    10          * a variable that keeps the sole instance.
     18         * A variable that keeps the sole instance.
    1119         */
    1220        static $instance;
     
    3644        if ( in_array( $cf7_mail_tag, Kintone_Form::get_cf7_special_tags(), true ) ) {
    3745            $mail_tag = new WPCF7_MailTag(
    38                 sprintf( '[%s]', $cf7_mail_tag ), $cf7_mail_tag, ''
     46                sprintf( '[%s]', $cf7_mail_tag ),
     47                $cf7_mail_tag,
     48                ''
    3949            );
    4050
     
    4454            if ( isset( $cf7_send_data[ $cf7_mail_tag ] ) ) {
    4555                if ( is_array( $cf7_send_data[ $cf7_mail_tag ] ) ) {
    46                     $value = $cf7_send_data[ $cf7_mail_tag ][0];
     56                    $value = ! empty( $cf7_send_data[ $cf7_mail_tag ] ) ? $cf7_send_data[ $cf7_mail_tag ][0] : '';
    4757                } else {
    4858                    $value = $cf7_send_data[ $cf7_mail_tag ];
     
    5464
    5565        return $return_data;
    56 
    5766    }
    5867}
  • kintone-form/trunk/readme.txt

    r3137588 r3177301  
    77Requires at least: 6.3
    88Tested up to: 6.5.4
    9 Stable tag: 2.27.5
     9Stable tag: 2.27.6
    1010Requires PHP: 7.4
    1111License: GPLv2 or later
     
    5050
    5151== Changelog ==
     52
     532.27.6 (2024-10-29)
     54* Fixed an issue where radio buttons could be empty when using Conditional Fields for Contact Form 7
     55
    52562.27.5 (2024-08-19)
    5357* Fixed an issue when using the Conditional Fields for Contact Form 7 plugin to set form radio buttons to kintone dropdown fields. Under specific conditions, the required check for radio buttons was not functioning correctly, resulting in empty array data being sent to kintone. This problem has been resolved.
Note: See TracChangeset for help on using the changeset viewer.