[buddypress-trac] [BuddyPress Trac] #7902: Potential PHP fatal errors in bp_comment_author_avatar and bp_post_author_avatar
buddypress-trac
noreply at wordpress.org
Wed Jun 13 07:44:44 UTC 2018
#7902: Potential PHP fatal errors in bp_comment_author_avatar and
bp_post_author_avatar
--------------------------+-----------------------------
Reporter: xknown | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
A static analysis tool to detect PHP 7.2 incompatibilities detected that
`bp_comment_author_avatar` and `bp_post_author_avatar` call the
`get_avatar` function without any arguments (it requires at least 1
argument [https://developer.wordpress.org/reference/functions/get_avatar/
#]). This produces a fatal error in PHP versions >= 7.1
([https://3v4l.org/CKni6 #])
The code path to reach the `get_avatar` call is potentially non reachable,
but I think it would be good to fix it or maybe remove it if you think
this is no longer necessary.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7902>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list