Changeset 37137 for branches/4.2/src/wp-includes/taxonomy.php
- Timestamp:
- 03/30/2016 05:28:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/taxonomy.php
r32426 r37137 603 603 $term_ids = array_map('intval', $term_ids ); 604 604 605 $taxonomies = "'" . implode( "', '", $taxonomies) . "'";605 $taxonomies = "'" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "'"; 606 606 $term_ids = "'" . implode( "', '", $term_ids ) . "'"; 607 607 … … 1777 1777 } 1778 1778 1779 $where = "tt.taxonomy IN ('" . implode("', '", $taxonomies) . "')";1779 $where = "tt.taxonomy IN ('" . implode("', '", array_map( 'esc_sql', $taxonomies ) ) . "')"; 1780 1780 1781 1781 $exclude = $args['exclude']; … … 2703 2703 $taxonomy_array = $taxonomies; 2704 2704 $object_id_array = $object_ids; 2705 $taxonomies = "'" . implode("', '", $taxonomies) . "'";2705 $taxonomies = "'" . implode("', '", array_map( 'esc_sql', $taxonomies ) ) . "'"; 2706 2706 $object_ids = implode(', ', $object_ids); 2707 2707
Note: See TracChangeset
for help on using the changeset viewer.