From c0c97139fc1effd500143ffe195d5f35e9d1f892 Mon Sep 17 00:00:00 2001 From: Jason M Head Date: Tue, 25 Jul 2023 18:19:07 +0900 Subject: [PATCH] Update ajax.php Allow the creation of lists using terms that are not yet used by a post. For setting up future infrastructure --- admin/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/ajax.php b/admin/ajax.php index 0689922..b539cfd 100644 --- a/admin/ajax.php +++ b/admin/ajax.php @@ -38,7 +38,7 @@ function wpsp_get_terms() { die(); } - $terms = get_terms( sanitize_key( $_POST[ 'taxonomy' ] ), 'orderby=count&hide_empty=1' ); + $terms = get_terms( sanitize_key( $_POST[ 'taxonomy' ] ), 'orderby=count&hide_empty=0' ); $count = count( $terms ); $types = array(); if ( $count > 0 ) {