@ Michael
Ahhh… yes. I immediately tested this and was able to reproduce it. My first thought; “Well, this is hokey!”
I did quickly find the issue though. As part of the search logic, I run the keywords thru the same list of stopwords that WP uses and then strips those stopwords from the search.
I give you one guess what one of the stopwords are. Yes, one of them is “will”, so when you search for “Will” it’ll get stripped and new results found. That explains why searching for “Wil” works.
I think maybe I should remove “will” from the stopwords … none of the others do not seem like they would interfere with searching for names.
Luckily this is fixable right now… here’s how:
Install the Code Snippets plugin.
Add a new snippet with the following code:
add_filter( ‘wp_search_stopwords’, ‘cn_remove_will_from_stopwords’ );
function cn_remove_will_from_stopwords( $stopwords ) {
if ( FALSE !== $key = array_search( 'will', $stopwords ) ) {
unset( $stopwords[ $key ] );
}
return $stopwords;
}
Save and activate the new snippet.
And like magic, search “will” should return the expected results.
Apologies for the trouble!
If you have a moment, I would truly appreciate a review as they really do make a difference. Thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections