#wordpress 2018-12-12

2018-12-12 UTC
[eddie], [tantek], tbbrown, petermolnar and [asuh] joined the channel
#
[asuh]
Just tried out replying to a Tweet with Webmentions/Post Kinds, without Bridgy Publish, and the tweet info isn’t being saved nor is it syndicating back to Twitter when I publish.
#
GWG
Without Bridgy Publish how are you Syndicating?
#
[asuh]
checked the box that says “Twitter via Bridgy”
#
[asuh]
Just realized I should have said Syndication Links instead of Webmentions
AkyRhO joined the channel
#
[asuh]
I’m also wondering if the Response Properties are incompletely parsing the Tweet. I have to manually fill in the Author details
#
GWG
I use that feature and it should just work. Did you check your Bridgy user page?
#
GWG
Also, there is a 60 second delay
#
[asuh]
Tried again just now with a personal Tweet. Seems to have retained Author details but doesn’t syndicate to Twitter
#
[asuh]
GWG nothing on the Bridgy user page, strange
#
[asuh]
Take that back, it shows that it published to my site
#
[asuh]
Just no syndication to Twitter
#
GWG
Odd.
#
[asuh]
Is there something I have to do with a Post Kind Reply for it to be a retweet?
#
[asuh]
I mean a reply
#
[asuh]
with an at mention
#
GWG
You shouldn't. But even if a reply didn't work, it should have been a standard tweet
#
GWG
What is the link?
#
Loqi
A bookmark (or linkblog) is a post that is primarily comprised of a URL, often title text from that URL, sometimes optional text describing, tagging, or quoting from its contents https://indieweb.org/link
#
[asuh]
Here’s what I’m seeing with Reply to Tweets
#
[asuh]
1) Add New Post > Reply Kind > paste URL of Tweet into “Responsive Properties”
#
[asuh]
*Response
#
[asuh]
2) Click on the “Name” field below and after a few seconds it fills in the “Name” but does not fill in anything about the author, which I believe it should since they’re likely the same
#
GWG
Can I have the link to your reply post?
#
[asuh]
3) Added content, updated my permalink to be something other than a number, checked relevant categories and Syndicate To “Twitter via Bridgy”
#
[asuh]
4) Seems to finally have worked but the tweet is messy
#
[asuh]
I don’t know what I was missing from the last few posts but I thought I was being consistent
#
GWG
Can I see it?
#
Loqi
[Micah] Replied to @rachsmithtweets @chriscoyier Maybe you know this but @ImpressiveWebs has a curated feed list that needs updating https://t.co/2kdlcPahXk— Micah (@asuh) November 10, 2015 Considering my move back to my site for consuming and sh...
#
[asuh]
^^ this one worked
#
Loqi
[Micah] Replied to @rachsmithtweets @chriscoyier Maybe you know this but @ImpressiveWebs has a curated feed list that needs updating https://t.co/2kdlcPahXk— Micah (@asuh) November 10, 2015 Considering my move back to my site for consuming and sh...
#
[asuh]
^^ this one did not work
#
[asuh]
and it exposes my Post Kinds Reply content needs to be modified to not include the excerpt that I was discussing with [pfefferle] 24 hours ago
#
GWG
[asuh]: The problem being the way the theme is including the reply in the content. Bridgy is parsing it that way.
#
GWG
Post Kinds adds the reply to the content because unless you add it to your theme, it is the only place I can automatically put it
#
[asuh]
right, I see that. It’s tricky because I was trying to wrap all the content with `.entry-content` and `.e-content` but it appears I should not do this
#
GWG
[asuh]: entry-content or e-content should only be your post content.
jeremych_ joined the channel
#
GWG
There are two approaches.
#
[asuh]
So somehow I need to make sure that those classes are only applied to content inside of <? the_content() ?>
#
GWG
1. Add a hook outside of the post content to post the Post Kinds addition to.
#
GWG
2. My solution...add e-content as a filter to the_content at a priority of 1, so it wraps only the post content and not anything added to it.
#
[asuh]
I need to review your functions.php includes to see how you’re doing this
#
[asuh]
but you said above that Post Kinds adds the reply to the content within <? the_content() ?>? I suppose the that filter is only wrapping the content around the `$content` argument being passed in instead of around everything prepended or appended to that function
#
[asuh]
My mistake was thinking I could just have this working inside of the static markup to begin with. This is an interesting problem
#
GWG
[asuh]: That is how I solved the issue. By wrapping everything not added to the filter in e-content.
#
GWG
If you saw the logs, there are others who prefer a different approach.
#
[asuh]
it makes sense based on what’s happening
#
[asuh]
yeah, I’ll go over your PR that [pfefferle] linked to 24 hours ago and learn the alternative approach to see what I think
#
[asuh]
GWG thanks for the middle of the night feedback (hope I didn’t wake you!)
#
GWG
[asuh]: I nodded off at 9PM and woke up at 3AM. So I may go back to bed, but I have a few things to do anyway
#
GWG
I owe jackjamieson some bug fixes
#
[asuh]
you are a trooper
#
[asuh]
I’m documenting all of your theme updates and changes in my own theme with a slightly different code style using anonymous functions instead of named functions since I don’t have to namespace the functions that way
#
GWG
I should write another blog post about that.
#
GWG
I did one ages ago.
#
[asuh]
yeah, I hope to write something about your changes to my theme as well once I get it wrapped up
#
Loqi
definitely
#
GWG
Anonymous functions are fine.
#
GWG
To be honest, I think about cleaning up my 2016 fork into something I can release and update through the .org repo
#
[asuh]
My intention is to take all of this work to wrap it up into something that’s potentially a drop and include into themes. I’m sure this is the third time I’ve mentioned it but it’s a fun little project
#
[asuh]
It would be good to have another Indieweb theme inside of the repo
#
GWG
[asuh]: I wonder how they'll react to a non-Gutenberg theme.
#
[asuh]
If your version with mf2 updates is mostly parity to the official version, seems like it’d pass
#
[asuh]
Besides, I would guess the majority of themes are still not Gutenberg compatible yet
#
[asuh]
I wonder if Gutenberg has to work whether the theme considers it being there or not. I haven’t played around with it to know
#
GWG
[asuh]: Well, I backported all the Gutenberg changes
#
GWG
Even though I don't know how well it will work
#
[asuh]
We’ll find out as we continue
[pfefferle] joined the channel
#
[pfefferle]
if you need a gutenberg/indieweb compatible theme: https://github.com/pfefferle/ZenPress
#
Loqi
[pfefferle] ZenPress: ZenPress is a highly semantic, responsive, accessible and search engine optimized WordPress Theme. It provides HTML5 templates refined with microformats, microformats v2 and microdata (Schema.org). ZenPress supports a lot of OpenWeb plugins and is fully IndieWeb compatible.
#
GWG
[pfefferle]: Good morning
#
[pfefferle]
good morning
#
Loqi
rise and shine!
#
jgregorymcverry.com
edited /WordPress.com (+1168) "/* Criticism */ added section on Third party Ads"
(view diff)
[jgmac1106] joined the channel
#
[jgmac1106]
awesome good to know [pfefferle] you should note that on the wiki that theme is compatible
[pfefferle] joined the channel
#
[pfefferle]
haven’t I?
#
GWG
Trying to figure out how to benchmark functions in a WordPress plugin
[kevinmarks], [jgmac1106] and cjwillcock1 joined the channel
#
cjwillcock1
GWG: use http headers to send timing info from plugins works for me. At various places: header('CJW-BLAH-1: ' . (microtime(true) - $start));
#
GWG
cjwillcock1: I want to go down to the function level
#
cjwillcock1
You may send those headers at any time, before after each function call. Mid function, etc.
#
cjwillcock1
If its a function that runs many times, use a 'static $idx = 0;' then in the header call: header("CJW-$desc-" . $idx++ . '...-
#
cjwillcock1
Time for my commute. Enjoy.
[Marco], [eddie], [jgmac1106], [kevinmarks], [tantek], tantek__, caitlin1, alexmingoia, tbbrown, doubleloop, gRegorLove, tantek and [schmarty] joined the channel; WA9ACE left the channel