WordPress.org

Make WordPress Core

Ticket #20072: 20072.diff

File 20072.diff, 852 bytes (added by kawauso, 4 years ago)

Add $id param

  • wp-includes/category-template.php

     
    996996 * @param string $before Optional. Before tags. 
    997997 * @param string $sep Optional. Between tags. 
    998998 * @param string $after Optional. After tags. 
     999 * @param int $id Optional. Post ID. 
    9991000 * @return string 
    10001001 */ 
    1001 function get_the_tag_list( $before = '', $sep = '', $after = '' ) { 
    1002         return apply_filters( 'the_tags', get_the_term_list( 0, 'post_tag', $before, $sep, $after ), $before, $sep, $after); 
     1002function get_the_tag_list( $before = '', $sep = '', $after = '', $id = 0 ) { 
     1003        return apply_filters( 'the_tags', get_the_term_list( $id, 'post_tag', $before, $sep, $after ), $before, $sep, $after, $id ); 
    10031004} 
    10041005 
    10051006/**