[buddypress-trac] [BuddyPress Trac] #7568: Avoid passing WP_Comment object to `is_email()` when filtering avatar URL

buddypress-trac noreply at wordpress.org
Wed Jul 12 16:44:19 UTC 2017


#7568: Avoid passing WP_Comment object to `is_email()` when filtering avatar URL
--------------------------+-----------------------------
 Reporter:  needle        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 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".

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7568>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list