From db45d30d96dde3998a3036e72d8f6ccd71558af5 Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Fri, 24 Jun 2022 10:15:47 -0600 Subject: [PATCH] Revert "Weighting: Add ability to bail early from do_weighting" --- includes/classes/Feature/Search/Weighting.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/includes/classes/Feature/Search/Weighting.php b/includes/classes/Feature/Search/Weighting.php index 48ec628e85..0d24ec9291 100644 --- a/includes/classes/Feature/Search/Weighting.php +++ b/includes/classes/Feature/Search/Weighting.php @@ -589,21 +589,6 @@ public function do_weighting( $formatted_args, $args ) { */ $weight_config = apply_filters( 'ep_weighting_configuration_for_search', $weight_config, $args ); - /** - * Filter whether to disable weighting configuration - * - * @hook ep_disable_do_weighting - * @since 4.2.1 - * @param {bool} Whether to use weighting configuration, default is false - * @param {array} $weight_config Current weight config - * @param {array} $args WP Query arguments - * @param {array} $formatted_args Formatted ES arguments - * @return {bool} Whether to use weighting configuration - */ - if ( apply_filters( 'ep_disable_do_weighting', false, $weight_config, $args, $formatted_args ) ) { - return $formatted_args; - } - if ( Utils\is_integrated_request( 'weighting', [ 'public', 'rest' ] ) && ! empty( $args['s'] ) ) { /* * This section splits up the single query clause for all post types into separate nested clauses (one for each post type)