Gravity Forms + Custom Post Types - Version 3.1.25

Version Description

  • Fixed PHP 8 deprecation notices about required parameters after optional parameters.
Download this release

Release Info

Developer claygriffiths
Plugin Icon wp plugin Gravity Forms + Custom Post Types
Version 3.1.25
Comparing to
See all releases

Code changes from version 3.1.24 to 3.1.25

Files changed (3) hide show
  1. gfcptaddon.php +2 -2
  2. gfcptaddonbase.php +2 -2
  3. readme.txt +3 -0
gfcptaddon.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Gravity Forms + Custom Post Types
4
  Plugin URI: https://gravitywiz.com/
5
  Description: Map your Gravity-Forms-generated posts to a custom post type and/or custom taxonomies.
6
- Version: 3.1.24
7
  Author: Gravity Wiz
8
  Author URI: https://gravitywiz.com/
9
  License: GPL2
@@ -16,7 +16,7 @@ class GFCPTAddon {
16
 
17
  private static $name = 'Gravity Forms + Custom Post Types';
18
  private static $slug = 'GFCPTAddon';
19
- private static $version = '3.1.24';
20
  private static $min_gravityforms_version = '1.9.3';
21
 
22
  //Plugin starting point. Will load appropriate files
3
  Plugin Name: Gravity Forms + Custom Post Types
4
  Plugin URI: https://gravitywiz.com/
5
  Description: Map your Gravity-Forms-generated posts to a custom post type and/or custom taxonomies.
6
+ Version: 3.1.25
7
  Author: Gravity Wiz
8
  Author URI: https://gravitywiz.com/
9
  License: GPL2
16
 
17
  private static $name = 'Gravity Forms + Custom Post Types';
18
  private static $slug = 'GFCPTAddon';
19
+ private static $version = '3.1.25';
20
  private static $min_gravityforms_version = '1.9.3';
21
 
22
  //Plugin starting point. Will load appropriate files
gfcptaddonbase.php CHANGED
@@ -309,7 +309,7 @@ if ( ! class_exists( 'GFCPTAddonBase' ) ) {
309
  $field->enableChoiceValue = true;
310
  }
311
 
312
- function load_post_type_choices( $post_type, $first_choice = '', $field ) {
313
  $posts = $this->load_posts_hierarchical( $post_type, $field->formId, $field->id );
314
  if ( $first_choice === '' || $first_choice === 'First Choice' ) {
315
  // if no default option is specified, dynamically create based on post type name
@@ -409,7 +409,7 @@ if ( ! class_exists( 'GFCPTAddonBase' ) ) {
409
  /*
410
  * Load any taxonomy terms
411
  */
412
- function load_taxonomy_choices( $taxonomy, $type, $first_choice = '', $field ) {
413
  $choices = array();
414
 
415
  if ( in_array( $field->get_input_type(), gf_apply_filters( array(
309
  $field->enableChoiceValue = true;
310
  }
311
 
312
+ function load_post_type_choices( $post_type, $first_choice, $field ) {
313
  $posts = $this->load_posts_hierarchical( $post_type, $field->formId, $field->id );
314
  if ( $first_choice === '' || $first_choice === 'First Choice' ) {
315
  // if no default option is specified, dynamically create based on post type name
409
  /*
410
  * Load any taxonomy terms
411
  */
412
+ function load_taxonomy_choices( $taxonomy, $type, $first_choice, $field ) {
413
  $choices = array();
414
 
415
  if ( in_array( $field->get_input_type(), gf_apply_filters( array(
readme.txt CHANGED
@@ -81,6 +81,9 @@ When populating a Drop Down field with a post type, you may wish to set the sele
81
 
82
  == Changelog ==
83
 
 
 
 
84
  = 3.1.24 =
85
  * Fixed an issue where taxonomy terms may be saved as choices on non-choice based fields.
86
 
81
 
82
  == Changelog ==
83
 
84
+ = 3.1.25 =
85
+ * Fixed PHP 8 deprecation notices about required parameters after optional parameters.
86
+
87
  = 3.1.24 =
88
  * Fixed an issue where taxonomy terms may be saved as choices on non-choice based fields.
89