Fix search shortcode

This commit is contained in:
Tetrakern 2024-06-26 23:08:41 +02:00
parent 1243625c19
commit e78095bce5

View File

@ -628,18 +628,10 @@ if ( get_option( 'fictioneer_enable_storygraph_api' ) ) {
}
/**
* Add search (only in search context).
* Add search.
*/
add_action(
'pre_get_posts',
function ( $query ) {
if ( ! is_admin() && $query->is_main_query() && $query->is_search() ) {
require_once __DIR__ . '/includes/functions/_module-search.php';
}
},
1
);
/**
* Generate SEO schema graphs.