PluginProbe
ActivityPub / 7.8.2
ActivityPub v7.8.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/class-embed.php +1 -3 8.2.07.8.2 View file →
@@ -55,11 +55,9 @@
55 55
56 56 // If we don't have an avatar URL, but we have an author URL, try to fetch it.
57 57 if ( ! $avatar_url && $author_url ) {
58 58 $author = Http::get_remote_object( $author_url );
59 - if ( is_wp_error( $author ) ) {
60 - $author = array();
61 - } else {
59 + if ( ! is_wp_error( $author ) ) {
62 60 $avatar_url = $author['icon']['url'] ?? '';
63 61 $author_name = empty( $author['name'] ) ? $author_name : $author['name'];
64 62 }
65 63 }