WordPress.org

Make WordPress Core

Ticket #15313: 15313.diff

File 15313.diff, 640 bytes (added by sorich87, 8 years ago)
  • wp-includes/category-template.php

     
    536536
    537537        foreach ( $tags as $key => $tag ) {
    538538                if ( 'edit' == $args['link'] )
    539                         $link = get_edit_tag_link( $tag->term_id, $args['taxonomy'] );
     539                        $link = get_edit_tag_link( $tag->term_id, $tag->taxonomy );
    540540                else
    541                         $link = get_term_link( intval($tag->term_id), $args['taxonomy'] );
     541                        $link = get_term_link( intval($tag->term_id), $tag->taxonomy );
    542542                if ( is_wp_error( $link ) )
    543543                        return false;
    544544