Opened 6 years ago
Closed 6 years ago
#7902 closed defect (bug) (fixed)
Potential PHP fatal errors in bp_comment_author_avatar and bp_post_author_avatar
Reported by: | xknown | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
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 #). This produces a fatal error in PHP versions >= 7.1 (#)
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for the ticket! This code is indeed unreachable, so we can remove it.