Skip to content

Commit

Permalink
Fix typo: add_filter/apply_filters (#25512)
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath authored Sep 21, 2020
1 parent 4e07c4f commit 7491f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/template-parts.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function filter_rest_wp_template_part_collection_params( $query_params ) {
);
return $query_params;
}
apply_filters( 'rest_wp_template_part_collection_params', 'filter_rest_wp_template_part_collection_params', 99, 1 );
add_filter( 'rest_wp_template_part_collection_params', 'filter_rest_wp_template_part_collection_params', 99, 1 );

/**
* Filter for supporting the `resolved`, `template`, and `theme` parameters in `wp_template_part` queries.
Expand Down

0 comments on commit 7491f3c

Please sign in to comment.