[wp-trac] [WordPress Trac] #26944: Dashboard "At a glance" widget ignores get_avatar_comment_types filter
WordPress Trac
noreply at wordpress.org
Sun Jan 26 13:04:14 UTC 2014
#26944: Dashboard "At a glance" widget ignores get_avatar_comment_types filter
----------------------------+-----------------------------
Reporter: zodiac1978 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.8
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
The "At a Glance" dashboard widget does not show gravatars for anything
which is not a comment.
https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/dashboard.php#L487
But there can be a new different {{{comment_type}}} added:
https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/pluggable.php#L1696
Because {{{get_avatar}}} has its own {{{comment_type}}} check we can move
the {{{get_avatar}}} out of the if/else/endif. So we can add a new
{{{comment_type}}} '''with''' gravatars per {{{get_avatar_comment_types}}}
filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26944>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list