#wordpress 2019-04-25

2019-04-25 UTC
miklb, [tantek], [jgarber], ichoquo0Aigh9ie, [Rose], [frank], [grantcodes], [jgmac1106] and [eddie] joined the channel
#
[frank]
I just found out I can't favorite something through Quill to my WordPress blog. Well, I cán but in the WP blog it doesn't pick up the URL I favorited, just the title. I use the latest Micropub plugin. What is the best way to start debugging this? I can't see any information in the raw access logs as well. Which is kinda weird. I expected to see some kind of JSON popping up between Quill and my WP installation...
#
GWG
Micropub or Micropub+Post Kinds?
#
[frank]
Micropub + Post kinds
#
GWG
I just tested it and it worked.
#
GWG
That is strange
#
GWG
Do you have a URL for your post?
#
[frank]
I just deleted it. Just a moment, I'll make a new one again
#
Loqi
[Frank Meeuwsen] How to Read the Internet • Robin Rendle
#
[frank]
You'll see the link goes to the permalink of the post itself
#
[frank]
In the editor I see this
#
GWG
You want the URL to appear?
#
[frank]
Well...yes...
#
GWG
Okay.
#
[frank]
Seems logic to me
#
GWG
That isn't in the design
#
GWG
A link to it appears with the title.
#
GWG
If you wanted the URL displayed, you'd need to customize the display
#
[frank]
Well...the link to the original URL is not there, since the original URL is not available
#
[frank]
When you hover over the title in https://diggingthedigital.com/2649-2/ you'll see it goes to the same page instead of https://robinrendle.com/notes/how-to-read-the-internet/
#
Loqi
[Frank Meeuwsen] How to Read the Internet • Robin Rendle
#
[frank]
In Quill, I favorite the robinrendle URL. It would make sense it is available in my post. It doesn't have to be visible, as long as it's available under the title as a link
#
GWG
It actually goes to href="_" for some reason
#
[frank]
Yep. So how do I start debugging this?
#
[frank]
In my logfile I see 173.230.155.197 - - [25/Apr/2019:07:32:28 -0500] "POST /wp-json/micropub/1.0/endpoint HTTP/1.0" 201 603 "-" "-"
#
GWG
Let me explore this.
#
[frank]
Thanks
#
GWG
It may be a Post Kinds bug
#
[frank]
In the meantime I manually edited the post above to show the URL, author and short summary
#
GWG
The page has no microformats, so it is falling back on meta properties. Will see that case
#
[frank]
I understand. But I wodner about the absence of the URL. How could that happen?
#
[frank]
*wonder
#
GWG
If the fact there is no URL property is overwriting the supplied URL.
#
[frank]
But I give an URL on https://quill.p3k.io/favorite so how can there be no URL? And it seems somewhere along the line it picks up the title of the given URL.
#
Loqi
Quill
#
GWG
I have to look at the code on the WordPress side that tries to get a title
#
[frank]
What plugin would that be? The Post Kinds I think?
#
[frank]
And how do I see what actually goes from Quill to my WordPress installation? It should be serverlogs right? Or something else?
#
[frank]
I tested some more with Postman on my local dev WordPress. It is weird actually. When I do a Micropub like-of of https://robinrendle.com/notes/how-to-read-the-internet/ it doesn't give back the URL in the response.
#
[frank]
My suggestion would be to always give back the URL in the response, whether there is a microformats or meta properties.
#
GWG
It should. It's a bug
#
[frank]
Thank god it's not a feature 😉
#
[frank]
Should I add it to the Issues at the github repo?
[jgmac1106], [Rose], [eddie], [schmarty], [josh_nadas] and [cleverdevil] joined the channel
#
GWG
Up to you
jackjamieson and [chrisaldrich] joined the channel
#
[chrisaldrich]
GWG, saw your ping. I'll try to install and test out later today.
miklb joined the channel
#
[chrisaldrich]
GWG I tried a version of the Parkeology challenge yesterday, but using Swarm at Knott's Berry Farm. Only managed a dozen rides on a slow day with a slow 8 year old. 🙂
#
GWG
Choose your team members bettert
[kevinmarks], [schmarty], [Rose], [cleverdevil], [josh_nadas], [tantek], [frank], [eddie] and gRegorLove joined the channel
#
gRegorLove
I'm searching the WP Codex but thought I'd ask here in case someone has a quick answer: what early hook for the admin area is similar to `template_redirect`? I need a hook before any headers are sent to the browser, for the admin area.
[tantek], [manton] and [schmarty] joined the channel
#
gRegorLove
I used `plugins_loaded`
miklb, [kevinmarks], chrisaldrich and [jgmac1106] joined the channel