Plugin Directory

Changeset 2578858


Ignore:
Timestamp:
08/05/2021 03:34:46 PM (4 years ago)
Author:
claygriffiths
Message:

Update to version 3.1.24 from GitHub

Location:
gravity-forms-custom-post-types
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gravity-forms-custom-post-types/tags/3.1.24/gfcptaddon.php

    r2578209 r2578858  
    44Plugin URI: https://gravitywiz.com/
    55Description: Map your Gravity-Forms-generated posts to a custom post type and/or custom taxonomies.
    6 Version: 3.1.23
     6Version: 3.1.24
    77Author: Gravity Wiz
    88Author URI: https://gravitywiz.com/
     
    1717    private static $name                     = 'Gravity Forms + Custom Post Types';
    1818    private static $slug                     = 'GFCPTAddon';
    19     private static $version                  = '3.1.23';
     19    private static $version                  = '3.1.24';
    2020    private static $min_gravityforms_version = '1.9.3';
    2121
  • gravity-forms-custom-post-types/tags/3.1.24/gfcptaddonbase.php

    r2578209 r2578858  
    372372            }
    373373
     374            // Choices check is not sufficient in cases where choices were accidentally saved to non-choice fields.
     375            if ( ! in_array( $field->get_input_type(), array( 'select', 'multiselect', 'radio', 'checkbox' ), true ) ) {
     376                // This clears any choices stored on non-choice based fields due to an earlier bug in GF+CPT. See HS#25737
     377                $field['choices'] = '';
     378                return;
     379            }
     380
    374381            $first_choice             = rgars( $field, 'choices/0/text' );
    375382            $field['choices']         = $this->load_taxonomy_choices( $taxonomy, $field['type'], $first_choice, $field );
  • gravity-forms-custom-post-types/tags/3.1.24/readme.txt

    r2578209 r2578858  
    8181
    8282== Changelog ==
     83
     84= 3.1.24 =
     85* Fixed an issue where taxonomy terms may be saved as choices on non-choice based fields.
    8386
    8487= 3.1.23 =
  • gravity-forms-custom-post-types/trunk/gfcptaddon.php

    r2578209 r2578858  
    44Plugin URI: https://gravitywiz.com/
    55Description: Map your Gravity-Forms-generated posts to a custom post type and/or custom taxonomies.
    6 Version: 3.1.23
     6Version: 3.1.24
    77Author: Gravity Wiz
    88Author URI: https://gravitywiz.com/
     
    1717    private static $name                     = 'Gravity Forms + Custom Post Types';
    1818    private static $slug                     = 'GFCPTAddon';
    19     private static $version                  = '3.1.23';
     19    private static $version                  = '3.1.24';
    2020    private static $min_gravityforms_version = '1.9.3';
    2121
  • gravity-forms-custom-post-types/trunk/gfcptaddonbase.php

    r2578209 r2578858  
    372372            }
    373373
     374            // Choices check is not sufficient in cases where choices were accidentally saved to non-choice fields.
     375            if ( ! in_array( $field->get_input_type(), array( 'select', 'multiselect', 'radio', 'checkbox' ), true ) ) {
     376                // This clears any choices stored on non-choice based fields due to an earlier bug in GF+CPT. See HS#25737
     377                $field['choices'] = '';
     378                return;
     379            }
     380
    374381            $first_choice             = rgars( $field, 'choices/0/text' );
    375382            $field['choices']         = $this->load_taxonomy_choices( $taxonomy, $field['type'], $first_choice, $field );
  • gravity-forms-custom-post-types/trunk/readme.txt

    r2578209 r2578858  
    8181
    8282== Changelog ==
     83
     84= 3.1.24 =
     85* Fixed an issue where taxonomy terms may be saved as choices on non-choice based fields.
    8386
    8487= 3.1.23 =
Note: See TracChangeset for help on using the changeset viewer.