From d05eb20263f08aa2151e334a482c0d9586eb4ad3 Mon Sep 17 00:00:00 2001 From: David Shanske Date: Tue, 12 Mar 2024 16:44:00 +0000 Subject: [PATCH 1/2] html5_comment was falling back to comment instead of html5_comment --- includes/class-comment-walker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-comment-walker.php b/includes/class-comment-walker.php index 6e049492..6762c2c7 100644 --- a/includes/class-comment-walker.php +++ b/includes/class-comment-walker.php @@ -185,7 +185,7 @@ protected function avatar_only( $comment, $depth, $args ) { protected function html5_comment( $comment, $depth, $args ) { // Only call this local version for comments that are webmention based. if ( 'webmention' !== get_comment_meta( $comment->comment_ID, 'protocol', true ) ) { - parent::comment( $comment, $depth, $args ); + parent::html5_comment( $comment, $depth, $args ); return; } From 0971bb8ed476eb49821f38ecff845911ce118009 Mon Sep 17 00:00:00 2001 From: David Shanske Date: Tue, 12 Mar 2024 16:45:13 +0000 Subject: [PATCH 2/2] Bump version --- readme.md | 6 +++++- readme.txt | 6 +++++- webmention.php | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 228b7450..64ca602b 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ **Tags:** webmention, pingback, trackback, linkback, indieweb, comment, response **Requires at least:** 4.9 **Tested up to:** 6.4 -**Stable tag:** 5.2.4 +**Stable tag:** 5.2.5 **Requires PHP:** 5.6 **License:** MIT **License URI:** https://opensource.org/licenses/MIT @@ -99,6 +99,10 @@ While not all display options can be settings, we are looking to provide some si Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention). +### 5.2.5 ### + +* Comment Walker was calling regular not html5 version of comment function when falling back. + ### 5.2.4 ### * Fix fatal PHP error diff --git a/readme.txt b/readme.txt index e9d60ae4..3ee96307 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/ Tags: webmention, pingback, trackback, linkback, indieweb, comment, response Requires at least: 4.9 Tested up to: 6.4 -Stable tag: 5.2.4 +Stable tag: 5.2.5 Requires PHP: 5.6 License: MIT License URI: https://opensource.org/licenses/MIT @@ -99,6 +99,10 @@ While not all display options can be settings, we are looking to provide some si Project and support maintained on github at [pfefferle/wordpress-webmention](https://github.com/pfefferle/wordpress-webmention). += 5.2.5 = + +* Comment Walker was calling regular not html5 version of comment function when falling back. + = 5.2.4 = * Fix fatal PHP error diff --git a/webmention.php b/webmention.php index d498cb55..cae0eb88 100755 --- a/webmention.php +++ b/webmention.php @@ -5,7 +5,7 @@ * Description: Webmention support for WordPress posts * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ - * Version: 5.2.4 + * Version: 5.2.5 * License: MIT * License URI: https://opensource.org/licenses/MIT * Text Domain: webmention