From 218b5b2d0712595fc0173df9dd11e1a1f24aae7f Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 11 May 2020 20:21:05 -0300 Subject: [PATCH] Fixes version testing to support RC tests. --- src/functions/customizer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 546816a..8e2347b 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -286,7 +286,7 @@ function tainacan_customize_register( $wp_customize ) { ) ) ); - if (version_compare(TAINACAN_VERSION, '0.16') <= 0) { + if (version_compare(TAINACAN_VERSION, '0.16RC') >= 0) { /** * Adds option to display Collection banner on the item single page. */ @@ -454,7 +454,7 @@ function tainacan_customize_register( $wp_customize ) { 'fallback_refresh' => true ) ); - if (version_compare(TAINACAN_VERSION, '0.16') <= 0) { + if (version_compare(TAINACAN_VERSION, '0.16RC') >= 0) { /** * Adds options to display or not the document download button. */ @@ -583,7 +583,7 @@ function tainacan_customize_register( $wp_customize ) { ) ) ); - if (version_compare(TAINACAN_VERSION, '0.16') <= 0) { + if (version_compare(TAINACAN_VERSION, '0.16RC') >= 0) { /** * Adds section to control collection items page. ---------------------------------------------------------