Taxonomy is not saving after updating to 3.1.16
-
Hello,
Thank you for this awesome plugin.
After updating to version 3.1.16 from 3.1.15. I found out that posts created through the form are missing the taxonomy.
I made a comparison between the old and the new version of plugin to find the differences.
Version 3.1.15 > gfcptaddon_1-5.php line 43-51
function get_field_taxonomy( $field ) { if (array_key_exists('populateTaxonomy', $field)) { return $field['populateTaxonomy']; } else if (array_key_exists('saveToTaxonomy', $field)) { return $field['saveToTaxonomy']; } else { return false; } }
Version 3.1.16 > gfcptaddon_1-5.php line 43-51
function get_field_taxonomy( $field ) { if ( isset( $field->populateTaxonomy ) ) { return $field->populateTaxonomy; } elseif ( isset( $field->populateTaxonomy ) ) { return $field->populateTaxonomy; } return false; }
I changed the code in 3.1.16 to the following and it is working fine for me.
function get_field_taxonomy( $field ) { if ( isset( $field->populateTaxonomy ) ) { return $field->populateTaxonomy; } elseif ( isset( $field->saveToTaxonomy ) ) { return $field->saveToTaxonomy; } return false; }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Taxonomy is not saving after updating to 3.1.16’ is closed to new replies.