diff --git a/includes/functions/_module-search.php b/includes/functions/_module-search.php index 1fc66e9b..7b62f5e2 100644 --- a/includes/functions/_module-search.php +++ b/includes/functions/_module-search.php @@ -211,8 +211,8 @@ function fictioneer_extend_search_query( $query ) { $tax_array = []; $authors = []; $author_name = sanitize_text_field( $_GET['author_name'] ?? '' ); - $min_words = absint( $_GET['min_words'] ?? 0 ); - $max_words = absint( $_GET['max_words'] ?? 0 ); + $min_words = absint( $_GET['miw'] ?? 0 ); + $max_words = absint( $_GET['maw'] ?? 0 ); $is_any_post = isset( $_GET['post_type'] ) && ( $_GET['post_type'] === 'any' ) ? 1 : 0; $authors_in = empty( $_GET['authors'] ) ? [] : array_map( 'absint', explode( ',', $_GET['authors'] ) ); diff --git a/includes/functions/hooks/_general_hooks.php b/includes/functions/hooks/_general_hooks.php index 0c6e4a34..5bec4bd6 100644 --- a/includes/functions/hooks/_general_hooks.php +++ b/includes/functions/hooks/_general_hooks.php @@ -761,12 +761,12 @@ add_action( 'fictioneer_search_form_filters', 'fictioneer_add_search_for_status' */ function fictioneer_add_search_for_min_words( $args ) { - $words = absint( $_GET['min_words'] ?? 0 ); + $words = absint( $_GET['miw'] ?? 0 ); // Start HTML ---> ?>