#wordpress 2019-06-07

2019-06-07 UTC
[jgmac1106] joined the channel
#
[jgmac1106]
Grant search this channel for rel="alternate" there is even an expirmental plugin
#
GWG
I should work on that plugin again
wagle joined the channel
#
Loqi
definitely
#
GWG
I am always jumping projects
#
GWG
I need to figure out location presentation in RSS feeds
#
GWG
Most Post Kinds are rendering fine without much changing
[tantek], Ruxton, [xavierroy], gRegorLove, [kevinmarks786], [fluffy], jeremych_, [tonz], [jgmac1106], jgmac1106 and [grantcodes] joined the channel
#
[grantcodes]
[jgmac1106] Yeah I know about the rel=alternate thing but that requires parser updates, I think my idea would work with existing parsers
#
jgmac1106
I see so it would skip the hentry and you would have a post below?
#
[grantcodes]
Basically remove as many mf classes as possible and then stick a hidden element with everything as the first or last child of the body element. It would probably fix the anomalily example at least from my quick test
#
[grantcodes]
Even without removing other mf2 I got a valid rsvp - but it was along with the other one that doesn't work. Probably need someone who understands parsers better than me to look for issues in this idea
#
[grantcodes]
Hmm but adding the hidden mf2 element to the myravery.me example doesn't look like it works as well because like I said, it has h-entry on the body class. But that could probably be removed via a plugin
#
sknebel
[grantcodes]: yes, a hidden post has been suggested - as you discovered mf1 on the body is a potential issue, as could be mf1 that parses just well enough that the consumer gets confused what the right post is
#
sknebel
(I don't think you could stick it on the head with valid HTML)
#
[grantcodes]
Yes sknebel, I also thought about the head, but yeah don't think it is valid.
#
[grantcodes]
Testing it for anomilily I got the 2 posts like you said.
#
[grantcodes]
I think it *might* be possible for the plugin to fix most of the issues though by removing classes. I was testing by just adding html, not removing anything
jgmac1106 joined the channel
#
[grantcodes]
I did try a really dumb idea of a template element in the head but doesn't work with parsers
#
sknebel
Parsers are clever enough to know not to look into template elements
[smerrill] joined the channel
#
Loqi
[Marios Alexandrou] Description This plugin allows you to dynamically (i.e. at the time when a page is generated) replace code and text from themes and other plugins with code and text of your choosing before a page is delivered to a user’s browser. Because the find ...
#
jgmac1106
if I search for hentry and replace with h-entry before the page gets rendered
#
jgmac1106
have my brother’s wedding this weekend so won’t be able to play but when I get back next week I will try, when I did this manually everythign worked fine
#
[grantcodes]
That first plugin just does an output buffer of the entire page and does find and replace. I'm not sure but I feel there might be potential conflicts with that method.
[aaronpk] and [tantek] joined the channel
#
[tantek]
note that the myravery example has several (I think all the "recommended") plugins installed and running, including the mf2 plugin
#
[tantek]
so I presume that's what's sticking the h-entry class name on body
#
[tantek]
therefore it is better to "fix" that plugin rather than try to patch that with yet another plugin
#
[tantek]
One minimal approach would be to figure out what fixes need to be made to mf2 plugin for it to work with known popular themes, such that it enables the Post Kinds plugin to do all the correct markup
[jgmac1106] joined the channel
#
[jgmac1106]
Yes it is. I was just searching for plugins to remove css selectors, or find and replace. I just have to remove all hentry before the mf2 plugin works with parsers... Just throwing spaghetti at wall trying to find hack for first step
#
[jgmac1106]
The mf2 plugin also no longer has a maintainer. Need community involvement on that one
#
[tantek]
if the mf2 plugin is putting h-entry on the body along with hentry - that's ok and the actual problem is the errant hfeed (added by the theme?) and the *extra* h-entry (added by Post Kinds? can Post Kinds detect that <body> already has h-entry and not be redundant?)
#
[jgmac1106]
Was hoping if [grantcodes] or @gwg knew if some filter could be added to mf2 or post kinds to remove hentry and hfeed
#
[tantek]
[jgmac1106] is that reflected on the wiki page for the mf2 plugin?
#
[jgmac1106]
Dunno. Will check if I have time before leaving
#
[tantek]
Thank you
#
[tantek]
Additionally it would be good to remove it from the list of "recommended plugins" until it has a maintainer that can address these critical issues
#
[tantek]
what is Getting Started With WordPress
#
Loqi
By using WordPress on your own domain, you are already a part of the IndieWeb. Below are some suggestions to help you get started with upgrading your WordPress site to support IndieWeb philosophies https://indieweb.org/Getting_Started_with_WordPress
#
[tantek]
the definition could use minor improvement. the Overview needs a complete rewrite (e.g. WordPress users probably don't care about the IndieWeb notion of "generations") and I don't know what is accurate after that or not. https://indieweb.org/Getting_Started_on_WordPress#Overview
#
[tantek]
I am interested in helping improve this page, would anyone here like to collaborate on this?
#
GWG
Post Kinds never adds an h-entry
[smerrill] joined the channel
#
GWG
It marks up mf2 properties inside an h-entry, not the h-entry itself
[pfefferle] joined the channel
#
[pfefferle]
As I mentioned yesterday, the only possibility to remove the hfeed is by something like that: https://github.com/pubsubhubbub/wordpress-pubsubhubbub/blob/c17cf4269ab738ac3ca33fad76a587e425caba56/pubsubhubbub.php#L80
#
[pfefferle]
because hfeed is mainly added to the source code without using a filter
#
[pfefferle]
hentry could be removed via filter
#
GWG
I think the first step is to explain the problem
#
[pfefferle]
but this breaks mf1
#
GWG
On the getting started page and plugin
#
[pfefferle]
and the mf2 plugin does not always add proper mf2
#
[pfefferle]
GWG I always wanted to mention this, because it was discussed above
#
GWG
So, what do you suggest we do that is the most impactful?
#
GWG
The problem is a clear plan
[Rose], [kevinmarks786] and jgmac1106 joined the channel
#
[pfefferle]
nothing new… I would remove the mf2 plugin and invest in the mf2-feed
#
GWG
I can get on board with that
#
GWG
Unless a new maintainer steps up
[smerrill], snarfed, gRegorLove, [kimberlyhirsh], [jgmac1106], jackjamieson and [tantek] joined the channel
#
[tantek]
pfefferle++ that's exactly the kind of thing I was looking for!
#
Loqi
pfefferle has 24 karma in this channel over the last year (30 in all channels)
#
[tantek]
at the risk of regretting this, what are the responsibilities for being a maintainer of the mf2 plugin?
#
[tantek]
pfefferle I agree with you re: the mf2-feed for the following / subscribing use-case
#
[tantek]
the challenge here is with Webmention receiver parsing of WordPress post permalinks, like an RSVP post
#
[tantek]
which make me think it is still worth adding this kind of a "cleaner" to the mf2 plugin, specifically to clean-up post permalink pages
#
GWG
I have some work to do there too
#
GWG
The feed plugin is supported by webmentions
#
[tantek]
GWG, maybe you could show me (at Summit? or right before?) how to setup maintenance of mf2 plugin to see if I have a chance of hacking something
#
[tantek]
would you be willing to be a reviewer / tester if I tried to maintain it? I feel this is something that requires async pairing
#
[jgmac1106]
I am willing to set up the top 5 free themes and run them through parsers with mf2 on and off if that helps.. And then repeat as you work... It isnt a unit test but if it helps bout all I could do
#
[jgmac1106]
Still just need to figure out to remove the hfeed and hentry or Tantek you thinking parallel work on parsers to ignore?
#
[tantek]
[jgmac1106] that would be a huge help. I have the general coding ability (especially with text / markup mashing / mixing / shredding), but would be lost with anything WordPress setup/testing related.
#
[tantek]
[jgmac1106] I want to pursue multiple solutions in parallel
#
[jgmac1106]
Okay...first thing next week. I also have an events plugin ready to go.. But takes manual removal of hfeed
#
[jgmac1106]
Or if this traffic keeps up on I-95 the next few hours
#
[tantek]
plugin(s) improvement(s) would help some folks at least as a quick(er) stopgap, however longer term we need non-plugin fixes since installing plugins is not available (time/expertise) or possible (hosted services) to all WP users
#
[jgmac1106]
[pfefferle] new theme getting great reviews and removal of microformats is in overall WP.org roadmap... That will help in a way when it happens
#
[jgmac1106]
Events is the only thing I would keep as plugin...i could never build the calendar UI and venue UI, either publishing or consuming
#
[tantek]
maybe. or it's possible markup will be further messed up since there is more of a focus now on React than on semantic markup
#
[jgmac1106]
Striping mf2 and adding mf2 was relatively straightforward
#
[jgmac1106]
Oops meant mf
#
[jgmac1106]
Funny thing is at PressEdConf they did a survey. Not one person who attended online moved to Gutenberg or didn't install Classic Editor
#
[jgmac1106]
Have some time... And then @grantcodes will do Gutenberg/React magic
[dougbeal] and [chrisaldrich] joined the channel
#
[chrisaldrich]
tantek, on the revision of the WP getting started page, I've taken some work [jgmac1106] started and done some reworking that's living here as a draft of a complete rewrite of the page: https://indieweb.org/User:Boffosocko.com/wordpress-draft
#
[chrisaldrich]
I hope to finish it up before the summit, but it's there if you want to work on it..
#
[tantek]
[chrisaldrich] did you give up on incremental improvements then?
#
[tantek]
I'm usually not a big fan of complete rewrites since it tends to be a bit community-abrasive/harsh (tossing out others's work completely)
#
[chrisaldrich]
I think that page still has some incremental work being done still...
#
[tantek]
also the problem you point out - waiting a while for a rewrite - stalls/disincentivizes incremental fies
#
[chrisaldrich]
I took that page, [jgmac1106]'s page, and some other pieces, so nothing is really being "thrown out".... just easier to move big pieces around; the draft page also has sections for things that originally existed that will need to be moved
#
[chrisaldrich]
the current page is a bit more dev focused and could be repurposed as a dev/getting started page
#
[chrisaldrich]
so the rewrite will really be a "new" page with a new focus and the old page will be moved and still useful.
#
[chrisaldrich]
hopefully both will be easier to maintain going forward
[schmarty] joined the channel
#
[tantek]
interesting. yes a dev-focused getting started with WP page will be good too
dougbeal|mb1 joined the channel
#
[tantek]
[chrisaldrich] is it possible for you to start incrementally merging your changes into the top of the existing page?
#
[tantek]
and then getting folks to help with reviewing just one piece at a time?
#
[tantek]
even the dfn is something that could be improved, then the Overview, etc. without having to fix it all up at once
snarfed, jackjamieson, [jgmac1106], [schmarty], [grantcodes], gRegorLove_, [Rose] and [tantek] joined the channel; snarfed left the channel