#wordpress 2025-09-09
2025-09-09 UTC
dagabeagenda and [pfefferle] joined the channel
#
[pfefferle] I think it is fine... it should fall back to the classic html5_comment if it is not a Webmention... otherwise the code below should mark up the Webmention...
#
GWG- [pfefferle]: I just thought only selectively overriding would produce better results than overriding the entire functionality
[morganm], [Al_Abut], gRegor and [asuh] joined the channel
#
[asuh] [pfefferle] from what I was seeing for the comments section from the code snippet I provided, every comment was being routed to the classic `html5_comment` instead of the custom code that GWG wrote for that function. Why would only Webmentions use the custom code and not comments that users submit to the blog post? I’m not quite certain of the logic
#
GWG- [asuh]: It was annoying the ActivityPub users I think
#
GWG- Not just them, but I think that's the group that had the first issue
#
[pfefferle] [asuh] because only Webmentions have the extra meta-data, that is used in the custom code... staying with the core functionality for classic content is most of the time the best solution, because it does not break theme styles!
#
[pfefferle] I am not speaking about them... but sure they semantics add value, but it doesn't matter if the core theme does not support mf2 but only the comments...
#
[pfefferle] microformats in wordpress are a whole different topic
#
[pfefferle] that we still have not really solved
#
[pfefferle] the problem is, that the comment walker is ONLY about the comments section
#
[pfefferle] so either your theme already has built in support for mf2, then classic comments will be marked up properly and we would only have to add the special cases for Webmentions (like likes, shares, bookmarks, ...)
#
[pfefferle] this is how I did it: https://github.com/pfefferle/autonomie/blob/master/comments.php
#
[pfefferle] works perfect with webmentions
#
[pfefferle] the semantics.php file I linked above is adding microformats through core functions
#
[pfefferle] at least where possible
#
[pfefferle] this way you would not have to change too much of the code
#
[asuh] That’s similar to my Setup file: https://github.com/asuh/forage/blob/main/app/Setup.php
#
[pfefferle] so if you work on a custom theme, I would recommend to add as much microformats as possible to the theme and do not rely to much on external code
#
[pfefferle] this is the only real solution that worked for me
#
[pfefferle] and that is fine I think
#
[pfefferle] Jan Boddez had a nice extension to the block editor
#
[pfefferle] to add mf2
#
[pfefferle] but he is no longer working on WordPress 😞 https://github.com/janboddez/indieblocks
#
[pfefferle] good luck 🙂
#
[pfefferle] In germany we would say something like: The journey matters more than the destination :)
[manton] joined the channel
#
GWG- The journey is fun
