Make WordPress Core

Ticket #14740: alt.14740.diff

File alt.14740.diff, 1.1 KB (added by scribu, 14 years ago)
  • wp-includes/taxonomy.php

     
    28892889        $r = wp_parse_args( $args, $defaults );
    28902890        extract( $r, EXTR_SKIP );
    28912891
    2892         echo $before . join($sep, get_the_taxonomies($post, $template)) . $after;
     2892        echo $before . join($sep, get_the_taxonomies($post, $r)) . $after;
    28932893}
    28942894
    28952895/**
     
    29012901 * @since 2.5.0
    29022902 *
    29032903 * @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.
    29052905 * @return array
    29062906 */
    2907 function get_the_taxonomies($post = 0, $template = '%s: %l.') {
     2907function get_the_taxonomies($post = 0, $args) {
    29082908        if ( is_int($post) )
    29092909                $post =& get_post($post);
    29102910        elseif ( !is_object($post) )
    29112911                $post =& $GLOBALS['post'];
    29122912
     2913        $args = wp_parse_args( $args, array(
     2914                'template' => '%s: %l.'
     2915        ) );   
     2916        extract( $args, EXTR_SKIP );
     2917
    29132918        $taxonomies = array();
    29142919
    29152920        if ( !$post )