Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Enhance "remove_query()" to Recognize Other Ampersand Forms #383

Merged
merged 1 commit into from
Feb 14, 2017
Merged

Conversation

amiga-500
Copy link
Collaborator

@amiga-500 amiga-500 commented Feb 14, 2017

The remove_query() function strips out the WP Query String name-value pair (e.g., ver=4.#.#), if it exists. But because this name-value pair can start with either ? or & the previous code did not take into account the other forms of ampersand that WP passes to this function. Namely, &# 038; and &. These other forms were indeed being passed to remove_query() but were not being recognized until now. :octocat:

remove_query() strips out the WP Query String name-value pair, if it
exists.  But because it can exist by starting with either "?" or "&" it
forgot to also check for other forms of the ampersand such as WP's
&\#38; and \&
@amiga-500 amiga-500 changed the title Enhancing "remove_query()" to Recognize Other Ampersand Forms Enhance "remove_query()" to Recognize Other Ampersand Forms Feb 14, 2017
@amiga-500 amiga-500 merged commit 8daa030 into v0.9.5.x Feb 14, 2017
@amiga-500 amiga-500 deleted the ver branch February 14, 2017 16:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant