WordPress.org

Make WordPress Core

Ticket #17069: 17069.3.patch

File 17069.3.patch, 665 bytes (added by keesiemeijer, 14 months ago)

Replace get_category_link() with get_term_link()

  • src/wp-includes/category-template.php

     
    12831283                $name   = ( 'slug' === $args['format'] ) ? $parent->slug : $parent->name; 
    12841284 
    12851285                if ( $args['link'] ) { 
    1286                         $list .= '<a href="' . esc_url( get_category_link( $parent->term_id ) ) . '">' . $name . '</a>' . $args['separator']; 
     1286                        $list .= '<a href="' . esc_url( get_term_link( $parent->term_id, $taxonomy ) ) . '">' . $name . '</a>' . $args['separator']; 
    12871287                } else { 
    12881288                        $list .= $name . $args['separator']; 
    12891289                }