#wordpress 2020-07-17

2020-07-17 UTC
[snarfed]1, Learning247, [chrisaldrich], gRegorLove, Lweasel, [tantek], [jgmac1106], [schmarty], [tw2113] and [Murray] joined the channel
#
beko
I may have found a pattern. Parse-This seems to have problems finding data when the h-entry is nested in an h-feed. Some websites seem to wrap single articles in a feed with one child for reasons unknown to me. This is probably even legit for microformats.
[pfefferle] joined the channel
#
[pfefferle]
I would rephrase it to: most wordpress sites use hfeed also on single pages
#
GWG
beko: I am positive that I tested that scenario many times, but need to look at your data
#
GWG
I'm trying to figure out mf2 unit tests right now for another project
#
[pfefferle]
I know that one πŸ˜‹
[Murray] joined the channel
#
GWG
[pfefferle]: I have to figure out how to get the test files. Construct some... use people's websites for others
#
[pfefferle]
I would use peoples websites
#
[pfefferle]
but I would refresh them
#
[pfefferle]
and then add some popular wordpress themes as example posts
#
GWG
I still have the hardest time with testing
#
GWG
It's slow for me, but I will get it done
#
[pfefferle]
it does not have to be perfect, but some tests so that we see that it works for different kind of themplates
#
[pfefferle]
and to check if changes will break something
#
[pfefferle]
it is ok for me if there is at least a test that test the complete parsing thing
#
[pfefferle]
put a website in and check the output
#
[pfefferle]
does the parser find the correct h-entry with the correct author and reaction-type
#
[pfefferle]
what we did for the SL plugin
#
GWG
[pfefferle]: Should I build the reaction type code first then?
[Ana_Rodrigues] and [KevinMarks] joined the channel
#
beko
GWG: well, today I tried to like https://blog.landesmuseum-stuttgart.de/ludwigsburger-porzellan-ein-vermaechtnis-fuer-das-landesmuseum/ and the microformats look just fine for me and yet - Parse This yield an empty result [again] while https://paulopinto.page/2020/06/15/my-st-radio.html worked just fine. Kinda at a loss. Nothing of interest in the logs.
#
beko
morning btw :)
#
beko
oh wait… it's noon now, no?
#
GWG
10:56
#
GWG
But will have a look...
#
beko
GWG: I see. I always forget that there is a Parse This Debugger page (because it does not show as regular WordPress user - it needs admin role) and it works whhen I switch the Return Type to Feed
#
beko
Single is indeed empty. Looks like the auto parsing does not try Feed type.
#
beko
No way I can influence this behaivor from /post-new.php?kind=like no?
[tantek] joined the channel
#
beko
Interesting. This one https://stackoverflow.blog/2020/04/06/a-practical-guide-to-writing-technical-specs/ parses a complete jsonld just fine but also yields nothing on the auto parse on post-new.php. The result is just reported via JSON but never used.
hirusi joined the channel
#
beko
As for e https://blog.landesmuseum-stuttgart.de/ludwigsburger-porzellan-ein-vermaechtnis-fuer-das-landesmuseum/ it is detected as feed but has only _meta object in the returned JSON on post-new.php and while the og object looks good it's also never used.
[chrisaldrich] joined the channel
#
GWG
beko, I may take a page from pfefferle's discussion with me and move it to Tools
#
beko
πŸ‘
#
[chrisaldrich]
GWG is there an issue page where we can add example pages to for you as potential tests for the parser? It seems like I recall one, but I can't find it now.
#
GWG
[chrisaldrich]: The Parse This GitHub repo....linked in the parsing debugge
gRegorLove, nickodd, [jgmac1106], [Ana_Rodrigues], joba and [fluffy] joined the channel
#
[jgmac1106]
beko the very first thing I do when hacking on a WP theme or plugin is just do a global search for old microformats and delete them
#
[jgmac1106]
...half the time all you need to do for a theme to almost work with the mf2 plugin
[snarfed] joined the channel
#
[chrisaldrich]
Be careful to do a search for those old microformats in the style.css file and not simply delete them, but replace them so the styles don't break. πŸ™‚
#
[chrisaldrich]
I've found a lot of themes that will use them for styling, which is something I generally wouldn't recommend.
[tw2113] joined the channel
#
[tw2113]
good ole hentry?
[michael_lewis], [tantek], [snarfed], gRegorLove, [Murray], [tw2113] and [manton] joined the channel; nickodd left the channel