[wp-trac] [WordPress Trac] #41846: Avoid PHP notice in get_comment_reply_link() for null comment
WordPress Trac
noreply at wordpress.org
Fri Sep 27 14:46:01 UTC 2019
#41846: Avoid PHP notice in get_comment_reply_link() for null comment
---------------------------------------------+------------------------
Reporter: birgire | Owner: whyisjake
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: Comments | Version: 2.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+------------------------
Changes (by whyisjake):
* owner: (none) => whyisjake
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"46335" 46335]:
{{{
#!CommitTicketReference repository="" revision="46335"
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
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41846#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list