We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5cb57 commit e5c270bCopy full SHA for e5c270b
includes/collection/class-interactions.php
@@ -54,7 +54,7 @@ public static function add_comment( $activity ) {
54
55
$commentdata = array(
56
'comment_post_ID' => $comment_post_id,
57
- 'comment_author' => \esc_attr( $meta['name'] ),
+ 'comment_author' => isset( $meta['name'] ) ? \esc_attr( $meta['name'] ) : \esc_attr( $meta['preferredUsername'] ),
58
'comment_author_url' => \esc_url_raw( $meta['url'] ),
59
'comment_content' => \addslashes( $activity['object']['content'] ),
60
'comment_type' => 'comment',
0 commit comments