Commit 7b4a4fe
authored
_pad_term_counts() uses string-concatenated SQL without prepared statement
$object_types values are not individually escaped via $wpdb->prepare(). They use esc_sql() only at the
get_taxonomy() call, but imploded directly into the query string. The array keys are integer IDs but are not cast.
This should use prepare() with placeholders.1 parent 917f5d4 commit 7b4a4fe
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4072 | 4072 | | |
4073 | 4073 | | |
4074 | 4074 | | |
4075 | | - | |
4076 | 4075 | | |
4077 | 4076 | | |
4078 | 4077 | | |
| |||
0 commit comments