Skip to content
Open
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
Fix: Don't apply canonical redirects to URLs with commas in query par…
…ameters.
  • Loading branch information
snehapatil2001 committed Mar 11, 2025
commit 422ab9fde6b5c31f94060a57905a7aee57f2eae4
3 changes: 1 addition & 2 deletions src/wp-includes/canonical.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
return;
}

// Don't redirect URLs with commas in query parameters (Bug #62920)
if ( isset( $_SERVER['QUERY_STRING'] ) && strpos( $_SERVER['QUERY_STRING'], ',' ) !== false ) {
return false;
return;
}

if ( ! $requested_url && isset( $_SERVER['HTTP_HOST'] ) ) {
Expand Down
Loading