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