From 515c51ebfe0ff646045bd339c84eb584f739021c Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Tue, 25 Jun 2019 12:35:07 -0400 Subject: [PATCH] Make sure the instance is set for the term lists --- includes/widgets/fields/term-taxonomy.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/widgets/fields/term-taxonomy.php b/includes/widgets/fields/term-taxonomy.php index c06ad1e..e6d8df8 100644 --- a/includes/widgets/fields/term-taxonomy.php +++ b/includes/widgets/fields/term-taxonomy.php @@ -9,6 +9,10 @@ $tax_options = array(); foreach ( $taxonomies as $taxonomy ) { $tax_options[ $taxonomy->name ] = $taxonomy->label; } +if ( empty( $instance ) ) { + $instance = include 'term-defaults.php'; +} + /** * Define term specific taxonomy fields. */