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-12-07 03:12:14 +00:00
2015-01-16 02:59:59 +00:00
2014-12-09 19:33:09 +00:00
2014-09-11 19:06:33 +00:00
2014-11-25 06:11:02 +00:00
2015-02-05 20:11:04 +00:00
2014-11-30 21:40:53 +00:00
2014-12-06 21:31:41 +00:00
2015-01-13 07:44:57 +00:00
2013-12-24 18:56:05 +00:00
2015-01-12 16:39:39 +00:00
2014-11-24 04:41:15 +00:00
2015-01-08 07:04:40 +00:00
2015-01-10 06:53:48 +00:00
2015-01-12 16:39:39 +00:00
2015-01-16 18:36:46 +00:00
2015-01-16 01:05:52 +00:00
2014-11-17 17:36:17 +00:00
2015-01-16 01:05:52 +00:00
2015-01-29 03:57:42 +00:00
2014-12-30 20:40:50 +00:00
2015-01-11 22:26:55 +00:00
2014-11-20 16:02:55 +00:00
2014-03-03 20:24:31 +00:00
2014-08-13 03:55:10 +00:00
2014-09-29 10:27:58 +00:00
2014-05-06 18:28:46 +00:00
2015-01-11 00:12:47 +00:00
2015-01-08 21:19:24 +00:00
2015-02-03 10:14:28 +00:00
2015-01-10 06:53:48 +00:00
2015-01-10 06:53:48 +00:00
2015-02-03 10:14:28 +00:00
2015-01-17 13:10:27 +00:00
2015-01-16 23:35:24 +00:00
2015-01-07 07:50:58 +00:00
2015-01-16 01:05:52 +00:00
2014-12-01 01:33:34 +00:00
2015-01-03 22:01:54 +00:00
2015-01-10 06:56:51 +00:00
2015-01-10 06:56:51 +00:00
2015-01-16 01:05:52 +00:00
2015-01-11 01:55:34 +00:00
2015-01-25 09:47:05 +00:00
2015-01-16 18:36:46 +00:00
2014-11-24 04:57:17 +00:00
2015-01-17 01:36:55 +00:00
2015-01-03 04:09:12 +00:00
2015-01-16 15:55:50 +00:00
2015-01-21 23:17:08 +00:00
2015-01-16 01:05:52 +00:00
2014-12-01 01:33:34 +00:00
2015-02-05 06:16:35 +00:00
2015-01-06 01:56:07 +00:00
2015-01-12 16:39:39 +00:00
2015-02-03 02:55:21 +00:00
2015-01-16 19:02:26 +00:00
2014-07-07 10:17:44 +00:00
2014-07-07 10:17:44 +00:00
2014-12-06 21:31:41 +00:00
2014-12-06 21:31:41 +00:00
2014-12-06 21:31:41 +00:00
2014-12-01 01:33:34 +00:00
2015-01-20 18:43:30 +00:00
2015-01-16 19:02:26 +00:00
2015-01-17 01:36:55 +00:00
2015-01-16 02:41:07 +00:00
2015-01-17 17:30:10 +00:00
2014-11-30 23:23:37 +00:00
2015-01-16 16:06:47 +00:00
2015-01-08 07:04:40 +00:00
2015-01-30 02:19:46 +00:00
2015-01-10 04:58:49 +00:00
2015-01-10 06:53:48 +00:00
2014-12-31 20:40:05 +00:00
2015-01-31 00:32:09 +00:00
2015-02-05 19:37:47 +00:00
2015-01-14 05:32:19 +00:00
2014-07-19 23:13:19 +00:00
2015-01-12 16:39:39 +00:00
2015-01-16 18:36:46 +00:00
2015-01-29 11:45:59 +00:00
2014-12-20 22:46:53 +00:00
2014-06-30 23:49:34 +00:00
2015-01-12 16:39:39 +00:00
2015-01-08 07:04:40 +00:00
2015-01-25 07:50:31 +00:00
2014-11-30 22:18:33 +00:00
2015-01-16 01:05:52 +00:00
2015-01-08 07:04:40 +00:00
2015-01-12 16:39:39 +00:00
2015-02-05 19:03:52 +00:00
2015-01-04 23:09:53 +00:00
2015-01-16 01:05:52 +00:00
2015-02-05 19:37:47 +00:00
2014-11-30 22:55:08 +00:00
2015-01-10 06:53:48 +00:00
2014-11-03 06:07:26 +00:00
2015-02-05 04:18:57 +00:00
2015-01-16 22:50:20 +00:00
2015-01-19 08:46:24 +00:00
2015-02-06 02:01:24 +00:00
2015-01-16 01:05:52 +00:00
2015-01-17 06:33:42 +00:00
2015-01-12 16:39:39 +00:00
2015-01-22 14:45:14 +00:00
2014-01-10 18:14:20 +00:00
2014-12-31 05:34:07 +00:00
2015-01-16 01:05:52 +00:00
2013-12-11 19:48:29 +00:00
2015-01-29 11:34:52 +00:00
2015-01-29 11:36:00 +00:00