Ticket #14740: alt.14740.diff
File alt.14740.diff, 1.1 KB (added by , 14 years ago) |
---|
-
wp-includes/taxonomy.php
2889 2889 $r = wp_parse_args( $args, $defaults ); 2890 2890 extract( $r, EXTR_SKIP ); 2891 2891 2892 echo $before . join($sep, get_the_taxonomies($post, $ template)) . $after;2892 echo $before . join($sep, get_the_taxonomies($post, $r)) . $after; 2893 2893 } 2894 2894 2895 2895 /** … … 2901 2901 * @since 2.5.0 2902 2902 * 2903 2903 * @param int $post Optional. Post ID or will use Global Post ID (in loop). 2904 * @param string $template Optional. The template to use for displaying the taxonomy terms.2904 * @param array $args Override the defaults. 2905 2905 * @return array 2906 2906 */ 2907 function get_the_taxonomies($post = 0, $ template = '%s: %l.') {2907 function get_the_taxonomies($post = 0, $args) { 2908 2908 if ( is_int($post) ) 2909 2909 $post =& get_post($post); 2910 2910 elseif ( !is_object($post) ) 2911 2911 $post =& $GLOBALS['post']; 2912 2912 2913 $args = wp_parse_args( $args, array( 2914 'template' => '%s: %l.' 2915 ) ); 2916 extract( $args, EXTR_SKIP ); 2917 2913 2918 $taxonomies = array(); 2914 2919 2915 2920 if ( !$post )