Ticket #17646: cast_to_int.diff
File cast_to_int.diff, 693 bytes (added by , 13 years ago) |
---|
-
wp-includes/taxonomy.php
1893 1893 } else if ( 'tt_ids' == $fields ) { 1894 1894 $terms = $wpdb->get_col("SELECT tr.term_taxonomy_id FROM $wpdb->term_relationships AS tr INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN ($object_ids) AND tt.taxonomy IN ($taxonomies) $orderby $order"); 1895 1895 } 1896 if ( 'ids' == $fields || 'tt_ids' == $fields ) 1897 $terms = array_map( create_function( '$value', 'return (int) $value;' ), $terms ); 1896 1898 1897 1899 if ( ! $terms ) 1898 1900 $terms = array();