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

Commit 29af048

Browse files
committed
small tweaks
1 parent 01f0acd commit 29af048

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

includes/class-linkbacks-handler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public static function get_comment_type_excerpts() {
300300
// translators: Name verb on domain
301301
'read' => __( '%1$s <strong>read</strong> %2$s (via <a href="%3$s">%4$s</a>).', 'semantic-linkbacks' ),
302302
// translators: Name verb on domain
303-
'follow' => __( '%1$s <strong>followed</strong> %2$s (via <a href="%3$s">%4$s</a>).', 'semantic-linkbacks' ),
303+
'follow' => __( '%1$s <strong>followed</strong> %2$s (via <a href="%3$s">%4$s</a>).', 'semantic-linkbacks' ),
304304

305305
);
306306

@@ -332,8 +332,8 @@ public static function get_comment_type_strings( $type = null ) {
332332
'listen' => __( 'Listen', 'semantic-linkbacks' ),
333333
'watch' => __( 'Watch', 'semantic-linkbacks' ),
334334
'read' => __( 'Read', 'semantic-linkbacks' ),
335-
'follow' => __( 'Follow', 'semantic-linkbacks' ),
336-
'reacji' => __( 'Reacji', 'semantic-linkbacks' )
335+
'follow' => __( 'Follow', 'semantic-linkbacks' ),
336+
'reacji' => __( 'Reacji', 'semantic-linkbacks' ),
337337
);
338338
if ( ! $type ) {
339339
return $strings;
@@ -657,7 +657,7 @@ public static function comment_class( $classes, $class, $comment_id, $post_id )
657657
'listen' => array( 'u-listen' ),
658658
'read' => array( 'u-read' ),
659659
'watch' => array( 'u-watch' ),
660-
'follow' => array( 'u-follow' ),
660+
'follow' => array( 'u-follow' ),
661661
);
662662

663663
$semantic_linkbacks_type = self::get_type( $comment );

includes/class-linkbacks-mf2-handler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public static function get_class_mapper() {
104104
*/
105105
$class_mapper['follow-of'] = 'follow';
106106

107-
108107
return apply_filters( 'semantic_linkbacks_microformats_class_mapper', $class_mapper );
109108
}
110109

@@ -137,8 +136,7 @@ public static function generate_commentdata( $commentdata ) {
137136
// Use new webmention source meta key.
138137
if ( array_key_exists( 'webmention_source_url', $commentdata['comment_meta'] ) ) {
139138
$source = $commentdata['comment_meta']['webmention_source_url'];
140-
} // Fallback to comment author url.
141-
else {
139+
} else { // Fallback to comment author url.
142140
$source = $commentdata['comment_author_url'];
143141
}
144142

includes/class-linkbacks-walker-comment.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,15 @@ protected function html5_comment( $comment, $depth, $args ) {
9090
$host = wp_parse_url( $url, PHP_URL_HOST );
9191
// strip leading www, if any
9292
$host = preg_replace( '/^www\./', '', $host );
93-
94-
?>
93+
?>
9594
<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
9695
<article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
9796
<footer class="comment-meta">
9897
<div class="comment-author vcard h-card u-author">
9998
<?php
10099
if ( 0 !== $args['avatar_size'] ) {
101100
echo get_avatar( $comment, $args['avatar_size'] );}
102-
?>
101+
?>
103102
<?php
104103
/* translators: %s: comment author */
105104
printf(
@@ -159,6 +158,6 @@ protected function html5_comment( $comment, $depth, $args ) {
159158
);
160159
?>
161160
</article><!-- .comment-body -->
162-
<?php
161+
<?php
163162
}
164163
}

0 commit comments

Comments
 (0)