Make WordPress Core


Ignore:
Timestamp:
09/27/2019 02:45:49 PM (7 years ago)
Author:
whyisjake
Message:

Comments: Avoid PHP notice in get_comment_reply_link() for null comment.

If there is no global comment, or the input comment is null, return early to prevent warnings.

Fixes #41846
Props birgire, earnjam

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r46090 r46335  
    16461646
    16471647        $comment = get_comment( $comment );
     1648
     1649        if ( empty( $comment ) ) {
     1650                return;
     1651        }
    16481652
    16491653        if ( empty( $post ) ) {
Note: See TracChangeset for help on using the changeset viewer.