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 ---> ?>
- @@ -792,12 +792,12 @@ add_action( 'fictioneer_search_form_filters', 'fictioneer_add_search_for_min_wor */ function fictioneer_add_search_for_max_words( $args ) { - $words = absint( $_GET['max_words'] ?? 0 ); + $words = absint( $_GET['maw'] ?? 0 ); // Start HTML ---> ?>
- diff --git a/searchform.php b/searchform.php index a3752939..bab60cd1 100644 --- a/searchform.php +++ b/searchform.php @@ -31,8 +31,8 @@ if ( $show_advanced ) { $sentence = sanitize_text_field( $_GET['sentence'] ?? 0 ); $order = sanitize_text_field( $_GET['order'] ?? 'desc' ); $orderby = sanitize_text_field( $_GET['orderby'] ?? 'modified' ); - $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 ); $story_status = fictioneer_sanitize_query_var( $_GET['story_status'] ?? 0,