mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Use sanitize_key() instead of esc_sql() when 'escaping' variable DB field names. see #21767.
git-svn-id: https://develop.svn.wordpress.org/trunk@24714 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -791,7 +791,7 @@ class WP_Tax_Query {
|
||||
if ( $query['field'] == $resulting_field )
|
||||
return;
|
||||
|
||||
$resulting_field = esc_sql( $resulting_field );
|
||||
$resulting_field = sanitize_key( $resulting_field );
|
||||
|
||||
switch ( $query['field'] ) {
|
||||
case 'slug':
|
||||
|
||||
Reference in New Issue
Block a user