Make WordPress Core

Ticket #36058: 40684.patch

File 40684.patch, 1.1 KB (added by sebastian.pisula, 7 years ago)

Refresh path

  • wp-admin/includes/class-wp-comments-list-table.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    767767                }
    768768                echo $post_link;
    769769                $post_type_object = get_post_type_object( $post->post_type );
    770                 echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>';
    771                 echo '<span class="post-com-count-wrapper post-com-count-', $post->ID, '">';
     770
     771                if( $post_type_object ) {
     772                    echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>';
     773        }
     774
     775        echo '<span class="post-com-count-wrapper post-com-count-', $post->ID, '">';
    772776                $this->comments_bubble( $post->ID, $pending_comments );
    773777                echo '</span> ';
    774778                echo '</div>';