[wp-trac] [WordPress Trac] #37276: tax_query with field=name doesn't work if the term contains an apostrophe
WordPress Trac
noreply at wordpress.org
Thu Jul 7 01:51:09 UTC 2016
#37276: tax_query with field=name doesn't work if the term contains an apostrophe
--------------------------+------------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by elrae):
* keywords: => has-patch
Comment:
Patch uploaded that runs the wp_unslash to mirror what happens when
inserting the term. This solved the issue and lets you query with an
apostrophe. This bug also prohibited terms with quotes ( " ) from being
pulled in. This patch fixes that as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37276#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list