Ticket #4384: wp-taxonomy-svn-2007-06-01.diff
| File wp-taxonomy-svn-2007-06-01.diff, 1.5 KB (added by , 19 years ago) |
|---|
-
wp-includes/taxonomy.php
466 466 function &get_terms($taxonomies, $args = '') { 467 467 global $wpdb; 468 468 469 $defaults = array('orderby' => 'name', 'order' => 'ASC', 470 'hide_empty' => true, 'exclude' => '', 'include' => '', 471 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 472 'hierarchical' => true, 'child_of' => 0, 'get' => ''); 473 $args = wp_parse_args( $args, $defaults ); 474 475 if ( !empty($args['type']) ) 476 $taxonomies = $args['type']; 477 469 478 $single_taxonomy = false; 470 479 if ( !is_array($taxonomies) ) { 471 480 $single_taxonomy = true; … … 473 482 } 474 483 475 484 $in_taxonomies = "'" . implode("', '", $taxonomies) . "'"; 476 477 $defaults = array('orderby' => 'name', 'order' => 'ASC', 478 'hide_empty' => true, 'exclude' => '', 'include' => '', 479 'number' => '', 'fields' => 'all', 'slug' => '', 'parent' => '', 480 'hierarchical' => true, 'child_of' => 0, 'get' => ''); 481 $args = wp_parse_args( $args, $defaults ); 485 482 486 $args['number'] = (int) $args['number']; 483 487 if ( !$single_taxonomy || !is_taxonomy_hierarchical($taxonomies[0]) || 484 488 '' != $args['parent'] ) { … … 493 497 } 494 498 extract($args); 495 499 500 496 501 if ( $child_of ) { 497 502 $hierarchy = _get_term_hierarchy($taxonomies[0]); 498 503 if ( !isset($hierarchy[$child_of]) ) … … 862 867 } 863 868 } 864 869 865 ?> 866 No newline at end of file 870 ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)