Skip to content

Commit 232cac5

Browse files
authored
Merge branch 'main' into add/async-processing
2 parents c37ea91 + c031274 commit 232cac5

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

includes/class-avatar-store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public static function store_avatar( $comment_id ) {
185185
if ( empty( $author ) ) {
186186
return false;
187187
}
188-
$host = webmention_extract_domain( get_url_from_webmention( $comment ) );
188+
$host = webmention_extract_domain( get_url_from_webmention( $comment ) );
189189
$avatar_url = self::sideload_avatar( $avatar, $host, $author );
190190

191191
if ( $avatar_url ) {

templates/webmention-comment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>" class="dt-published dt-updated published updated">
6565
<?php
6666
/* translators: 1: date, 2: time */
67-
printf( esc_html__( '%1$s at %2$s', 'webmention' ), get_comment_date(), get_comment_time() ); ?>
67+
printf( esc_html__( '%1$s at %2$s', 'webmention' ), get_comment_date(), get_comment_time() );
68+
?>
6869
</time></a>
6970
<ul>
7071
<?php if ( $target ) { ?>

templates/webmention-comments.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
$mentions = get_comments(
33
array(
4-
'post_id' => get_the_ID(),
5-
'type__in' => get_webmention_comment_type_names(),
6-
'status' => 'approve',
4+
'post_id' => get_the_ID(),
5+
'type__in' => get_webmention_comment_type_names(),
6+
'status' => 'approve',
77
)
88
);
99

tests/test-webmention.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
class Webmention_Test extends WP_UnitTestCase {
3-
public function test_remove_sl() {
3+
public function test_remove_sl() {
44
\Webmention\remove_semantic_linkbacks();
55

66
$this->assertEquals( true, true );
7-
}
7+
}
88
}

0 commit comments

Comments
 (0)