Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Synonyms case sensitive issue #3857

Merged
merged 8 commits into from
Mar 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor change
  • Loading branch information
burhandodhy committed Mar 11, 2024
commit 9df26b71a2a8203590ee2aa9fb2cc22b1787a056
6 changes: 3 additions & 3 deletions includes/classes/Feature/Search/Synonyms.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,10 @@ private function update_synonym_post( $content ) {
* @return array
*/
private function maybe_change_filter_position( $filters ) {
$lowercase_index = array_search( 'lowercase', $filters, true );
$lowercase_filter = array_search( 'lowercase', $filters, true );

if ( false !== $lowercase_index ) {
unset( $filters[ $lowercase_index ] );
if ( false !== $lowercase_filter ) {
unset( $filters[ $lowercase_filter ] );
array_unshift( $filters, 'lowercase' );
}

Expand Down
Loading