Commit dab1852
committed
Query: Check that taxonomy query var is a string in
This prevents a fatal error from `urldecode()` in `wp_basename()` if an array is passed instead.
Follow-up to [15732], [15824], [15825], [15923], [16155], [50565], [60927].
Props patricedefago, alexodiy, SergeyBiryukov.
Fixes #64870.
git-svn-id: https://develop.svn.wordpress.org/trunk@62047 602fd350-edb4-49c9-b593-d223f7449a82WP_Query::parse_tax_query().1 parent 58ecd43 commit dab1852
File tree
2 files changed
+32
-1
lines changed- src/wp-includes
- tests/phpunit/tests/query
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1189 | 1189 | | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | | - | |
| 1192 | + | |
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
236 | 267 | | |
0 commit comments