You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'description' => __( 'IP address of the author at the time of making this comment. This field is equivalent to WP_Comment->comment_author_IP and the value matching the "comment_author_IP" column in SQL.', 'wp-graphql' ),
43
+
'resolve' => staticfunction ( $edge ) {
44
+
return$edge['source']->authorIp ?: null;
45
+
},
46
+
],
47
+
'name' => [
48
+
'type' => 'String',
49
+
'description' => __( 'The display name of the comment author for this particular comment', 'wp-graphql' ),
50
+
'resolve' => staticfunction ( $edge ) {
51
+
return$edge['source']->commentAuthor;
52
+
},
53
+
],
54
+
'url' => [
55
+
'type' => 'String',
56
+
'description' => __( 'The url entered for the comment author on this particular comment', 'wp-graphql' ),
@@ -64,8 +94,9 @@ public static function register_type() {
64
94
},
65
95
],
66
96
'authorIp' => [
67
-
'type' => 'String',
68
-
'description' => __( 'IP address for the author. This field is equivalent to WP_Comment->comment_author_IP and the value matching the "comment_author_IP" column in SQL.', 'wp-graphql' ),
97
+
'type' => 'String',
98
+
'deprecationReason' => __( 'Use the ipAddress field on the edge between the comment and author', 'wp-graphql' ),
99
+
'description' => __( 'IP address for the author at the time of commenting. This field is equivalent to WP_Comment->comment_author_IP and the value matching the "comment_author_IP" column in SQL.', 'wp-graphql' ),
0 commit comments