query['replytocom'] ); $comment = get_comment( $comment_id ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited // load 404 if replytocom is not valid if ( ! $comment ) { status_header( 404 ); nocache_headers(); // check if theme has a 404.php template $template_404 = get_query_template( 404 ); // return 404 template if ( $template_404 ) { include $template_404; die(); } else { wp_die( __( 'Page not found', 'webmention' ), __( '404', 'webmention' ) ); } } $target = ''; if ( $comment->comment_author_url ) { $target = $comment->comment_author_url; } // check parent comment if ( $comment->comment_parent ) { // get parent comment... $parent = get_comment( $comment->comment_parent ); // ...and gernerate target url if ( $parent->comment_author_url ) { $target = $parent->comment_author_url; } } ?> >
>