From 37a74a98f406820f0ccdfcd113c3f77d800fe364 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:32:01 +0200 Subject: [PATCH] Fix author name search field default --- searchform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchform.php b/searchform.php index df2a8bfa..da6e2bdc 100644 --- a/searchform.php +++ b/searchform.php @@ -54,7 +54,7 @@ if ( $show_advanced ) { $queried_authors_in = sanitize_text_field( $_GET['authors'] ?? 0 ); $queried_authors_out = sanitize_text_field( $_GET['ex_authors'] ?? 0 ); - $author_name = sanitize_text_field( $_GET['author_name'] ?? 0 ); // Simple text field + $author_name = sanitize_text_field( $_GET['author_name'] ?? '' ); // Simple text field $all_tags = get_tags(); $all_genres = get_tags( array( 'taxonomy' => 'fcn_genre' ) );