diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index 49276b4bd0..f69892ba7e 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -162,6 +162,17 @@ function wp_ajax_ajax_tag_search() { ) ); + /** + * Filters the Ajax term search results. + * + * @since 6.1.0 + * + * @param string[] $results Array of term names. + * @param WP_Taxonomy $tax The taxonomy object. + * @param string $s The search term. + */ + $results = apply_filters( 'ajax_term_search_results', $results, $tax, $s ); + echo implode( "\n", $results ); wp_die(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0cd17d94f7..4c7043462e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53780'; +$wp_version = '6.1-alpha-53781'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.