From b2f4a5fb0b35f62b962b890f504f55c88aefddc9 Mon Sep 17 00:00:00 2001 From: Rens Date: Fri, 17 May 2019 17:01:55 +0200 Subject: [PATCH] bug fix conditional logic when setting $_GET --- src/includes/class-shortcodes.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/includes/class-shortcodes.php b/src/includes/class-shortcodes.php index 03f2d755..9f332755 100644 --- a/src/includes/class-shortcodes.php +++ b/src/includes/class-shortcodes.php @@ -138,6 +138,9 @@ public static function get_items($items=array(), $tag, $atts, $prefix='', $setti if($tag==='checkbox'){ $selected_items = explode( ",", $atts['value'] ); } + if($tag==='radio'){ + $selected_items = array($atts['value']); + } $items = array();