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

Implement WP 5.9 change to remove empty query string when removing endpoint from a URL that contains a URL fragment #6727

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

westonruter
Copy link
Member

Summary

The remove_query_arg() function before WP 5.9 would end up leaving ?# when all query vars were removed. This implements the core change in 5.9 to strip out that extraneous ? in older versions as well.

See https://core.trac.wordpress.org/ticket/44499

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@westonruter westonruter added this to the v2.2 milestone Nov 17, 2021
@github-actions
Copy link
Contributor

Plugin builds for fb82dcc are ready 🛎️!

@westonruter westonruter disabled auto-merge November 17, 2021 22:55
@westonruter westonruter merged commit 094aef8 into develop Nov 17, 2021
@westonruter westonruter deleted the fix/wp59-phpunit-tests branch November 17, 2021 23:01
@westonruter westonruter added the Routing Handling URLs label Dec 15, 2021
@westonruter westonruter changed the title Fix test_amp_remove_paired_endpoint in WP 5.9 by removing empty query string Implement WP 5.9 change to remove empty query string when removing endpoint from a URL that contains a URL fragment Dec 15, 2021
@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelogged Whether the issue/PR has been added to release notes. Routing Handling URLs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant