Ticket #14448: 14448.patch
| File 14448.patch, 773 bytes (added by SergeyBiryukov, 18 months ago) |
|---|
-
wp-includes/taxonomy.php
1339 1339 case 'names': 1340 1340 $selects = array('t.term_id', 'tt.parent', 'tt.count', 't.name'); 1341 1341 break; 1342 case 'slugs': 1343 $selects = array('t.term_id', 'tt.parent', 'tt.count', 't.slug'); 1344 break; 1342 1345 case 'count': 1343 1346 $orderby = ''; 1344 1347 $order = ''; … … 1416 1419 while ( $term = array_shift($terms) ) 1417 1420 $_terms[] = $term->name; 1418 1421 $terms = $_terms; 1422 } elseif ( 'slugs' == $fields ) { 1423 while ( $term = array_shift($terms) ) 1424 $_terms[] = $term->slug; 1425 $terms = $_terms; 1419 1426 } 1420 1427 1421 1428 if ( 0 < $number && intval(@count($terms)) > $number ) {
