From f5dc554c61339b7e5bc4aa74ceb4b2aaac1f3897 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Fri, 24 May 2024 15:02:26 +0200 Subject: [PATCH] Update searchform.php --- .../functions/settings/_settings_actions.php | 4 +--- searchform.php | 24 ++++++++++++------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/includes/functions/settings/_settings_actions.php b/includes/functions/settings/_settings_actions.php index 6dc03cf2..208fe650 100644 --- a/includes/functions/settings/_settings_actions.php +++ b/includes/functions/settings/_settings_actions.php @@ -1713,9 +1713,7 @@ function fictioneer_connection_delete_patreon_tiers() { // Redirect wp_safe_redirect( add_query_arg( - array( - 'success' => 'fictioneer-patreon-tiers-deleted' - ), + array( 'success' => 'fictioneer-patreon-tiers-deleted' ), admin_url( 'admin.php?page=fictioneer_connections' ) ) ); diff --git a/searchform.php b/searchform.php index c8ad5635..a3752939 100644 --- a/searchform.php +++ b/searchform.php @@ -6,11 +6,17 @@ * @subpackage Fictioneer * @since 5.0.0 * @since 5.11.0 - Added 'fictioneer_search_form_filters' action hook. + * @since 5.19.0 - Added taxonomy preselect arguments. * - * @internal $args['simple'] Optional. Hide advanced options. - * @internal $args['placeholder'] Optional. Change search placeholder. - * @internal $args['preselect_type'] Optional. Default post type to query. - * @internal $args['cache'] Whether to account for active caching. + * @internal $args['simple'] Optional. Hide advanced options. + * @internal $args['placeholder'] Optional. Change search placeholder. + * @internal $args['preselect_type'] Optional. Default post type to query. + * @internal $args['preselect_tags'] Optional. Default tag IDs to query. + * @internal $args['preselect_genres'] Optional. Default genre IDs to query. + * @internal $args['preselect_fandoms'] Optional. Default fandom IDs to query. + * @internal $args['preselect_characters'] Optional. Default character IDs to query. + * @internal $args['preselect_warnings'] Optional. Default warning IDs to query. + * @internal $args['cache'] Whether to account for active caching. */ @@ -361,27 +367,27 @@ if ( $show_advanced ) {
- + $args['preselect_genres'] ?? null ) ); ?> - + $args['preselect_fandoms'] ?? null ) ); ?> - + $args['preselect_characters'] ?? null ) ); ?> - + $args['preselect_tags'] ?? null ) ); ?> - + $args['preselect_warnings'] ?? null ) ); ?> 1 ) : ?>