#7568 closed defect (bug) (fixed)
Avoid passing WP_Comment object to `is_email()` when filtering avatar URL
| Reported by: | needle | Owned by: | r-a-y |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9 |
| Component: | Core | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: |
Description
Comments by anonymous comment authors (i.e. without a user account) fall through the current logic in bp_core_get_avatar_data_url_filter and the WP_Comment object is passed to is_email() which expects a string - and therefore throws a PHP Warning: "strlen() expects parameter 1 to be string".
Attachments (2)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Ugh. Good catch.
I hate that we have to do our own user checking in the
'get_avatar_url'filter. WordPress shouldn't make us have to do that.