Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widgets: My Community widget updates #11476

Merged
merged 5 commits into from Mar 5, 2019
Merged
Diff settings

Always

Just for now

Next

Widgets: My Community: Escape Attribute Data

  • Loading branch information...
mdawaffe authored and jeherve committed Feb 27, 2019
commit 4fad9b75cc285735736234d98a5b9401ea98f20e
@@ -219,10 +219,10 @@ function get_community( $query ) {
foreach ( $members as $member ) {
$my_community .= sprintf(
'<li><a href="%s" %s><img alt="" src="%s" class="avatar avatar-240" height="48" width="48" originals="240" scale="1" /></a></li>',
$member->profile_URL,
empty( $member->name ) ? '' : 'title="' . $member->name . '"',
$member->avatar_URL
'<li><a href="%s" title="%s"><img alt="" src="%s" class="avatar avatar-240" height="48" width="48" originals="240" scale="1" /></a></li>',
esc_url( $member->profile_URL ),
esc_attr( $member->name ),
esc_url( $member->avatar_URL )
);
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.