Files
WordPress/wp-includes
Boone Gorges 7560f446f9 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.
Built from https://develop.svn.wordpress.org/trunk@31346


git-svn-id: http://core.svn.wordpress.org/trunk@31327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-06 02:02:23 +00:00
..
2014-09-11 19:07:17 +00:00
2014-11-25 06:12:22 +00:00
2015-01-16 19:03:23 +00:00
2015-01-16 19:03:23 +00:00
2014-11-30 23:24:25 +00:00
2015-01-16 16:07:23 +00:00
2014-11-30 22:56:25 +00:00
2013-10-30 14:39:10 +00:00