From 81a43185b8b092215ecf759051e59662702d7335 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 11 Jan 2014 17:04:05 +1100 Subject: [PATCH] Fix drop down taxonomies function to show all --- admin-functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin-functions.php b/admin-functions.php index 13a96421..ed5bf6d5 100644 --- a/admin-functions.php +++ b/admin-functions.php @@ -185,10 +185,11 @@ if ( !function_exists( 'sportspress_dropdown_taxonomies' ) ) { 'taxonomy' => null, 'name' => null, 'selected' => null, - 'value' => 'slug' + 'hide_empty' => false, + 'value' => 'slug', ); $args = array_merge( $defaults, $args ); - $terms = get_terms( $args['taxonomy'] ); + $terms = get_terms( $args['taxonomy'], $args ); $name = ( $args['name'] ) ? $args['name'] : $args['taxonomy']; if ( $terms ) { printf( '