Make WordPress Core

Ticket #37291: 37291.diff

File 37291.diff, 564 bytes (added by michalzuber, 9 years ago)

Check if WP_Error

  • wp-includes/category-template.php

    diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php
    index 8bba6b4..33817b9 100644
    a b function get_the_tag_list( $before = '', $sep = '', $after = '', $id = 0 ) { 
    11421142function the_tags( $before = null, $sep = ', ', $after = '' ) {
    11431143        if ( null === $before )
    11441144                $before = __('Tags: ');
    1145         echo get_the_tag_list($before, $sep, $after);
     1145        $tags = get_the_tag_list($before, $sep, $after);
     1146    echo is_wp_error( $tags ) ? '' : $tags;
    11461147}
    11471148
    11481149/**