Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b0519b5

Browse files
committed
Use the comment object instead of the id to get the comment meta.
The id seems to be empty.
1 parent 1585768 commit b0519b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-linkbacks-handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public static function get_comment_link( $link, $comment, $args ) {
423423
* @return string the replaced/parsed author url or the original comment link
424424
*/
425425
public static function get_comment_author_url( $url, $id, $comment ) {
426-
if ( $author_url = get_comment_meta( $id, 'semantic_linkbacks_author_url', true ) ) {
426+
if ( $author_url = get_comment_meta( $comment->comment_ID, 'semantic_linkbacks_author_url', true ) ) {
427427
return $author_url;
428428
}
429429

0 commit comments

Comments
 (0)