#wordpress 2018-01-29

2018-01-29 UTC
prtksxna_ joined the channel
#
gRegorLove
j12t, Nothing messed up! Just more showed in your comment than intended.
prtksxna_, [eddie] and [cleverdevil] joined the channel
#
j12t
So I updated my theme with the the_content filter approach recommended above. Looks better to me now: https://upon2020.com/blog/2018/01/test-3-please-ignore/
#
j12t
However, indiewebify.me does not detect the content ... is it looking for a <P> with the e-content class, or is a <div> ok as I have it?
#
GWG
It doesn't care in that case, I believe
#
GWG
But let's have a look
#
GWG
I see a problem
#
j12t
Also, php-mf2 produces confusing results. I get two elements for [content], the first pulls in too much, the second looks better
#
GWG
You have the WordPress added hentry, and then inside it, the h-entry.
#
GWG
That is why it is nesting.
#
GWG
Remove the h-entry and add it to post class.
#
j12t
Why does anything pay attention to WordPress entries?
#
GWG
Because hentry is a microformat
#
GWG
I couldn't get WordPress to stop including it. You can filter it out.
#
j12t
I think it would be very useful for "the definitive list of relevant microformats and how to/not to use them" to exist somewhere ...
prtksxna_ joined the channel
#
GWG
Well, WordPress is clogged not only with classic microformats, but people who didn't know what they were or how to properly use them
#
j12t
I mean just for our purposes here. I did not recognize that hentry was also significant.
#
Loqi
[David Shanske] Converting WordPress Themes for Microformats 2 – Part 1
#
GWG
Try this and remove the h-entry you added in.
#
j12t
Will do, but not today! Thanks for your help!!
#
GWG
Any time.
prtksxna, EmreSokullu, tantek, drkokandy, jeremycherfas and EmreSoku_ joined the channel
#
Zegnat
Question: can WP be made to speak HTTP/2?
EmreSokullu and [kevinmarks] joined the channel
#
sknebel
Zegnat: what do you mean by that?
#
petermolnar
wp doesn't have a built-in webserver, so it depends on the webserver serving it
#
petermolnar
(well, it sort of does, PHP itself, but really hope that's not how people deploy WP)
#
sknebel
I wonder if Zegnat wants WP to be able to fetch his ... creatively configured ... website
#
Zegnat
Yes. That. Haha.
#
Loqi
hehe
#
Zegnat
There seems to be a http_api_curl action that could be used to enable HTTP/2
#
Zegnat
ponders a PR
#
sknebel
I find it surprising in how many environments this requires changing the code, instead of being an automatic upgrade or config option
#
Zegnat
For some reason, default curl in PHP, seems to always ignore HTTP/2 when not explicitly told to support it.
#
Zegnat
Not that the PHP default matters in WP’s case, it always sets it explicitly: https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/class-wp-http-curl.php#L203
#
sknebel
I guess there is no real reason to flip it on yet
#
Zegnat
I don’t know what over-the-write benefits would be gained from switching. But in my testing, it seems PHP curl will always gracefully fallback to HTTP/1.* when configured to fetch HTTP/2. So there doesn’t seem to be a drawback to turning it on.
#
Zegnat
See https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html, which documents fallback logic (PHP’s own documentation on this is severely lacking)
jeremycherfas, syp1 and EmreSokullu joined the channel
#
Zegnat
Ah, hmm, maybe not able to set it as a safe default after all. I had no problems in my testing but the Guzzle people had a weird PHP error when curl didn’t support HTTP/2: https://github.com/guzzle/guzzle/issues/1249
#
Loqi
[dshafik] #1249 HTTP/2 Support
#
Zegnat
slaps PHP around with a large trout
[mrkrndvs] joined the channel
#
[mrkrndvs]
Is there any particular reason why the 'Post Properties' box throws errors on some posts? I know I can manually enter, I was just wondering
EmreSokullu joined the channel
#
GWG
[mrkrndvs]: Post the errors here or add them to an issue on the Github page. I'll have a look.
#
GWG
I wouldn't be able to comment without looking
#
GWG
I know LinkedIn isn't very nice about scraping, for example, and that wouldn't work
[kevinmarks], jeremych_, jeremycherfas, EmreSokullu, j12t, syp1, tantek, [jeremycherfas], [eddie], [cleverdevil], tantek1 and [mrkrndvs] joined the channel
#
[mrkrndvs]
Ok, I'll start being more conscientious GWG, sorry
chrisaldrich, EmreSokullu, camb, tantek and prtksxna joined the channel
#
martymcgui.re
edited /WordPress/usability (-80) "/* See Also */ remove loqi (?) log text from see also section title"
(view diff)
#
GWG
mrkrndvs: I'm sorry. I didn't mean for it to be taken that way. I am happy to look at it
[cleverdevil] and EmreSokullu joined the channel
#
wagle
TIL wordpress droplets work a lot better with more than a (ahem) itsy bitty bit of memory
[kevinmarks] joined the channel
#
GWG
wagle: ?
prtksxna and [eddie] joined the channel