Skip to content

Commit

Permalink
Merge pull request #2537 from yardinternet/fix/parameter-and-return-type
Browse files Browse the repository at this point in the history
(fix): correct parameter and return type
  • Loading branch information
felipeelia authored Feb 10, 2022
2 parents 02d5b64 + 7579ccf commit b6b6306
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 b6b6306

Please sign in to comment.