Skip to content

Commit 12f385d

Browse files
authored
Add missing avatar class so that CSS applies to ActivityPub Avatars on the Dashboard (#1932)
1 parent 2753297 commit 12f385d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Fixed missing avatar class so that CSS styles are correctly applied to ActivityPub avatars on the Dashboard.

includes/class-activitypub.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,10 @@ public static function pre_get_avatar_data( $args, $id_or_email ) {
356356

357357
/** This filter is documented in wp-includes/link-template.php */
358358
$args['url'] = \apply_filters( 'get_avatar_url', $avatar, $id_or_email, $args );
359+
$args['class'][] = 'avatar';
359360
$args['class'][] = 'avatar-activitypub';
361+
$args['class'][] = 'avatar-' . (int) $args['size'];
362+
$args['class'][] = 'photo';
360363
$args['class'][] = 'u-photo';
361364
$args['class'] = \array_unique( $args['class'] );
362365
}

0 commit comments

Comments
 (0)