Skip to content

Commit a290d68

Browse files
committed
1 parent a9129f4 commit a290d68

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

includes/class-comment-walker.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use WP_Comment;
66
use Walker_Comment;
7+
use WP_Comment_Query;
78

89
class Comment_Walker extends Walker_Comment {
910
/**
@@ -283,6 +284,10 @@ protected function html5_comment( $comment, $depth, $args ) {
283284
* @param WP_Comment_Query $query Comment count.
284285
*/
285286
public static function comment_query( $query ) {
287+
if ( ! $query instanceof WP_Comment_Query ) {
288+
return;
289+
}
290+
286291
if ( is_admin() ) {
287292
return;
288293
}
@@ -292,9 +297,9 @@ public static function comment_query( $query ) {
292297
}
293298

294299
if ( ! empty( $query->query_vars['meta_query'] ) ) {
295-
$query = current( $query->query_vars['meta_query'] );
300+
$query_vars = current( $query->query_vars['meta_query'] );
296301

297-
if ( ! empty( $query['key'] ) && 'protocol' === $query['key'] ) {
302+
if ( ! empty( $query_vars['key'] ) && 'protocol' === $query_vars['key'] ) {
298303
return;
299304
}
300305
}

languages/webmention.pot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# This file is distributed under the MIT.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Webmention 5.3.0\n"
5+
"Project-Id-Version: Webmention 5.3.1\n"
66
"Report-Msgid-Bugs-To: "
77
"https://wordpress.org/support/plugin/wordpress-webmention\n"
8-
"POT-Creation-Date: 2024-05-13 07:52:14+00:00\n"
8+
"POT-Creation-Date: 2024-05-13 15:00:42+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
@@ -313,28 +313,28 @@ msgstr ""
313313
msgid "DB Migration finished"
314314
msgstr ""
315315

316-
#: includes/class-comment-walker.php:207
316+
#: includes/class-comment-walker.php:195
317317
msgid "Your comment is awaiting moderation."
318318
msgstr ""
319319

320-
#: includes/class-comment-walker.php:209
320+
#: includes/class-comment-walker.php:197
321321
msgid ""
322322
"Your comment is awaiting moderation. This is a preview; your comment will "
323323
"be visible after it has been approved."
324324
msgstr ""
325325

326-
#: includes/class-comment-walker.php:230
326+
#: includes/class-comment-walker.php:218
327327
#. translators: %s: Comment author link.
328328
msgid "%s <span class=\"says\">says:</span>"
329329
msgstr ""
330330

331-
#: includes/class-comment-walker.php:250 templates/webmention-comment.php:67
331+
#: includes/class-comment-walker.php:238 templates/webmention-comment.php:67
332332
#. translators: 1: Comment date, 2: Comment time.
333333
#. translators: 1: date, 2: time
334334
msgid "%1$s at %2$s"
335335
msgstr ""
336336

337-
#: includes/class-comment-walker.php:256
337+
#: includes/class-comment-walker.php:244
338338
msgid "Edit"
339339
msgstr ""
340340

readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:** webmention, pingback, trackback, linkback, indieweb
55
**Requires at least:** 4.9
66
**Tested up to:** 6.5
7-
**Stable tag:** 5.3.0
7+
**Stable tag:** 5.3.1
88
**Requires PHP:** 5.6
99
**License:** MIT
1010
**License URI:** https://opensource.org/licenses/MIT
@@ -100,6 +100,10 @@ While not all display options can be settings, we are looking to provide some si
100100

101101
Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention).
102102

103+
### 5.3.1###
104+
105+
* Fix fatal error
106+
103107
### 5.3.0 ###
104108

105109
* Fix facepiles for FSE themes

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/
44
Tags: webmention, pingback, trackback, linkback, indieweb
55
Requires at least: 4.9
66
Tested up to: 6.5
7-
Stable tag: 5.3.0
7+
Stable tag: 5.3.1
88
Requires PHP: 5.6
99
License: MIT
1010
License URI: https://opensource.org/licenses/MIT
@@ -100,6 +100,10 @@ While not all display options can be settings, we are looking to provide some si
100100

101101
Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention).
102102

103+
= 5.3.1=
104+
105+
* Fix fatal error
106+
103107
= 5.3.0 =
104108

105109
* Fix facepiles for FSE themes

webmention.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Webmention support for WordPress posts
66
* Author: Matthias Pfefferle
77
* Author URI: https://notiz.blog/
8-
* Version: 5.3.0
8+
* Version: 5.3.1
99
* License: MIT
1010
* License URI: https://opensource.org/licenses/MIT
1111
* Text Domain: webmention

0 commit comments

Comments
 (0)