Ticket #11076: get_terms.diff
File get_terms.diff, 862 bytes (added by , 15 years ago) |
---|
-
wp-includes/taxonomy.php
690 690 if ( !empty($include) ) { 691 691 $exclude = ''; 692 692 $exclude_tree = ''; 693 $interms = preg_split('/[\s,]+/',$include); 693 if ( is_array($include) ) 694 $interms =& $include; 695 else 696 $interms = preg_split('/[\s,]+/',$include); 694 697 if ( count($interms) ) { 695 698 foreach ( (array) $interms as $interm ) { 696 699 if (empty($inclusions)) … … 721 724 } 722 725 } 723 726 if ( !empty($exclude) ) { 724 $exterms = preg_split('/[\s,]+/',$exclude); 727 if ( is_array($exclude) ) 728 $exterms =& $exclude; 729 else 730 $exterms = preg_split('/[\s,]+/',$include); 725 731 if ( count($exterms) ) { 726 732 foreach ( (array) $exterms as $exterm ) { 727 733 if ( empty($exclusions) )