From 2b2858b71f7aaaee063d1efafafffdc23ad58a91 Mon Sep 17 00:00:00 2001 From: Dukagjin Surdulli Date: Tue, 14 Jul 2020 09:03:19 -0400 Subject: [PATCH] Hide warning from term page --- .../php/templates/taxonomy-term-transformation-fields.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-term-transformation-fields.php b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-term-transformation-fields.php index 35c52c1dd..eac29da74 100644 --- a/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-term-transformation-fields.php +++ b/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/templates/taxonomy-term-transformation-fields.php @@ -13,6 +13,7 @@ 'video' => $this->get_transformations( 'video' ), ); wp_add_inline_script( 'cloudinary', 'var CLD_GLOBAL_TRANSFORMATIONS = CLD_GLOBAL_TRANSFORMATIONS ? CLD_GLOBAL_TRANSFORMATIONS : {};', 'before' ); +$show_desc = true; ?>

@@ -31,7 +32,8 @@ $transformations[ $field['context'] ][ $field_slug ] = null; } // Render Field. - $this->media->plugin->components['settings']->render_field( $field, $transformations[ $field['context'] ][ $field_slug ] ); + $this->media->plugin->components['settings']->render_field( $field, $transformations[ $field['context'] ][ $field_slug ], $show_desc ); + $show_desc = false; ?>