Skip to content

Commit

Permalink
(fix): correct paramater and return type
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinsiebel committed Dec 21, 2021
1 parent 6dfe3e3 commit bfec548
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions includes/classes/Feature/Search/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,12 @@ public function weight_recent( $formatted_args, $args ) {
* Filter search date weighting decay
*
* @hook epwr_decay
* @param {string} $decay Current decay
* @param {float} $decay Current decay
* @param {array} $formatted_args Formatted Elasticsearch arguments
* @param {array} $args WP_Query arguments
* @return {string} New decay
* @return {float} New decay
*/
'decay' => apply_filters( 'epwr_decay', .25, $formatted_args, $args ),
'decay' => apply_filters( 'epwr_decay', 0.25, $formatted_args, $args ),
/**
* Filter search date weighting offset
*
Expand All @@ -498,10 +498,10 @@ public function weight_recent( $formatted_args, $args ) {
*
* @since 3.5.6
* @hook epwr_weight
* @param {string} $weight Current weight
* @param {float} $weight Current weight
* @param {array} $formatted_args Formatted Elasticsearch arguments
* @param {array} $args WP_Query arguments
* @return {string} New weight
* @return {float} New weight
*/
'weight' => apply_filters( 'epwr_weight', 0.001, $formatted_args, $args ),
),
Expand Down

0 comments on commit bfec548

Please sign in to comment.