Files
wordpress-develop/src/wp-includes
Boone Gorges 41db99c31a Use field-specific sanitization in WP_Tax_Query::transform_query().
When terms are entered into the database, term fields are sanitized with
`sanitize_term_field()`. To ensure that the `SELECT ... WHERE` queries in
`WP_Tax_Query::transform_query()` are not broken by overzealous sanitization,
`sanitize_term_field()` should be used in that case as well. This fixes a bug
where a tax_query using 'field=name' would fail if the 'terms' parameter
contained characters (like spaces) that were improperly removed by
`sanitize_title_for_query()`.

Fixes #27810.

git-svn-id: https://develop.svn.wordpress.org/trunk@31346 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-06 02:01:24 +00:00
..
2014-09-11 19:06:33 +00:00
2014-11-25 06:11:02 +00:00
2015-01-16 19:02:26 +00:00
2015-01-16 19:02:26 +00:00
2014-11-30 23:23:37 +00:00
2015-01-16 16:06:47 +00:00
2014-11-30 22:55:08 +00:00