#wordpress 2018-08-24

2018-08-24 UTC
tantek__ and davidmead joined the channel
#
GWG
miklb, I think aaronpk helped me formulate a plan
#
miklb
for teh micropub issue?
[jgmac1106] joined the channel
#
GWG
He postulated it was the load order
#
GWG
That somehow it was loading out of order
#
miklb
ok, just holler when you get to a point you want to test something
#
GWG
Will do
#
GWG
I just left work. Food first
gRegorLove, HarryS1 and Ruxton joined the channel
#
GWG
miklb: I pushed a change to try and load IndieAuth later.
#
miklb
🎉it worked
#
GWG
Can you note the PR
GWG, miklb_, jeremycherfas, ben_thatmustbeme, acegiak, wagle, petermolnar, [eddie], tantek, tantek__, Jamesofur25 and aaronpk joined the channel
#
miklb_
heh, found a way around to not add the extra p-name in titles. Use the wp_title filter and not the_title
#
miklb_
wait, maybe not
#
miklb_
misread the filter :-(
tantek joined the channel
tantek, Adran25 and jeremych_ joined the channel
#
miklb_
got it. may have been an act of futility but can now target just the post titles not all titles on the page
#
Zegnat
That sound awesome miklb_! Does that also let you not apply the filter to titles in feeds? E.g. did it (accidentally) also fix the JSONFeed issue?
#
miklb_
that I didn't check, still making sure I actually got the result I think I did
#
miklb_
looks like it
#
miklb_
not teh feed thing, just that I actually am only targeting the post content titles https://miklb.com/blog/2018/08/19/live-testing-the-state-of-affairs-in-wordpress-the-indieweb/ the next post previous post links don't have the p-name now
#
Loqi
[Michael Bishop] Suffice to say I’ve said a lot about WordPress and the IndieWeb. Here and in #indieweb-wordpress in IRC. But the gist is, I don’t know what issues there are summer of 2018 with a core WordPress theme and the suite of IndieWeb plugins. No one seem...
#
miklb_
hmm, seems I lost them on the h-feed though
#
miklb_
but I can massage that function and add in conditionals for is_single I think
#
miklb_
too many tabs. I think the h-feed is good too
#
miklb_
that was fun
#
Zegnat
miklb++ for mf2ing his WP :D
#
Loqi
miklb has 25 karma in this channel over the last year (41 in all channels)
#
Ruxton
miklb_: this is about where I saw the WP mainline decided to walk away from Microformats (1 or 2) - https://github.com/Automattic/_s/issues/1268
#
Loqi
[davidakennedy] #1268 Remove Microformat Classes from CSS
#
Ruxton
they're just gonna blow them away from _s and push everyone towards JSON-LD :(
#
miklb_
"We are not removing the structured markup but removing the use of the classes from the CSS"
#
miklb_
"Point theme authors toward JSON-LD, which allows for adding support for structured data outside of template files or CSS"
#
miklb_
but they aren't suggesting removing mf1 and adding JSON-LD to the markup
#
Ruxton
they're suggesting not supporting MF2 or MF1 in their starter theme and pushing people towards JSON-LD, sounds like they're removing it to me..
#
miklb_
I just posted a quote to the same concern GWG had in that thread
#
Ruxton
obviously theme devs can do what they want (and will) but the fact Automattic wont get behind it is a problem
#
miklb_
not removing structured markup
#
miklb_
it is a good thing they are removing the mf1 classes from CSS/Sass
#
Ruxton
"removing the use of the classes from the CSS" means _s wont/can't support MF2 out of the box
#
miklb_
that was the argument for not breaking switching to mf2 2 years ago
#
miklb_
no more .hentry {background-color: blue}
#
miklb_
"discourage theme authors from using the classes."
#
Ruxton
all that conversation stemmed from https://github.com/Automattic/_s/pull/972 where GWG (and to a lesser extent myself) were trying to get MF2 into _s
#
Loqi
[dshanske] #972 Microformats 2 Changes
#
Loqi
[davidakennedy] #1113 Add Schema and/or Microformats 2 Support?
#
miklb_
i read through a lot of that but so much has changed which is why I was revisiting what could be accomplisehd now
#
miklb_
the general consensus is to improve backcompat of mf1 for non mf2 WP themes so my experiement has ended. I just couldn't give in until I found a way to only target the actual content title not all titles on the page that pass through the_title
[kevinmarks] and [jgmac1106] joined the channel
#
[jgmac1106]
I really wish I could just get webmentions to work correct on my site, I know it is a lot to ask, but I have tried every which way to figure out what I am doing that is broken.....oh well be a good model that if you want to IndieWeb on WordPress you have to have flexibility and perserverance
#
petermolnar
[jgmac1106]: I can offer some help, though I know others tried already
#
[jgmac1106]
not today, but thanks, working on my follower list to rebuild my feeds...was just waxing poetic on my current state of affairs...Always trying to stay chippy about IndieWeb WordPress...knowing it doesn't even work for me...little doubt just crept in there that make me want to follow you and get the hell away from WordPress
#
petermolnar
leaving wp has it's toll
#
[jgmac1106]
...hmm there is is a post in there somewehre...seems no matter your path there is always a toll
#
[jgmac1106]
yeah and I fun last class onboarding folks to the web and indieweb using WordPress
#
petermolnar
anyway, if you can give me some kind of console access, I might be able to find the root cause (this is still the curl not working issue, right?)
#
[jgmac1106]
that is what always draws me back in, most folks I ecounter will be on WordPress and I should be the model
#
petermolnar
eh, tried to pm you, [jgmac1106], turns out that is not supported by the slack bridge.
#
petermolnar
anyway: I haven't done any commercial hosting for years, apart from running a few wp instances on rented hw from germany for friends. however, I believe those machines, for ~30Eur/month, can run 10-20 WP instances, so if you need someone to host sites for your students, we could probably work it out for 3-5E/month per person. Alternatively, digitalocean instances + a bunch of cron jobs, and it's done, that's 5$ range per mont
#
petermolnar
(ubuntu or debian + unattended upgrades; or centos7 with yummie; wp-cli for wordpress cli access, automated plugin, theme, and core upgrades => a more or less secure service)
#
[jgmac1106]
yeah I pay $50 a year and get 10 gigs, I could probably host them all on a subdomain but I never make folks purchase a book, last semester the first time I made them buy a domian
#
[jgmac1106]
My problem is the students I serve, owning your domain is low priority to someone borderline homeless and facing food insecurity.
#
petermolnar
that's definitely true
#
[jgmac1106]
in those cases I provide a subdomain...but then I worry I am broadcasting to rest of class "I am too poor for my own website" I am working with webhosts so they can sell hosting ion the book store and students can use financial aid
#
[jgmac1106]
all of reclaim hosting is just digital ocean anways, just paying friends as a middle man
#
sknebel
domain+hosting vouchers sounds neat. worst case you gotta sell a "book" with a voucher included?
#
[jgmac1106]
this is more chat or meta though..
jgmac1106 and jgmac1106_ joined the channel
#
jgmac1106
okay worked for a few hours to rebuild my feeds and following page, time to take a break
[kevinmarks], this, jgmac1106 and decode joined the channel
#
GWG
Heading back for an overnight of coding
#
GWG
Loqi, why don't you remember me?
[eddie] and jgmac1106 joined the channel
#
miklb_
still pretty pleased with figuring that the_title filter issue.
#
sknebel
the discussions made me wonder if one could semi-automate modifying themes - e.g. rename the bad hfeed classes and use some frontend tooling to automatically change the name in the css too
jgmac1106 and jgmac1106_ joined the channel
#
miklb_
well this plugin is modifying the classes by adding mf2 but keeps the old mf1 class to protect against it being used as stylehook.
#
miklb_
but that would be an interesting tool for theme devs to run their code through
#
miklb_
and if I turn this plugin into a library for theme devs so they can just drop it in and update the few classes that the functions can't reach, that could help with adoption
[shaners], [kevinmarks], [scottgruber] and snarfed joined the channel
#
snarfed
morning GWG!
#
Loqi
[dshanske] #162 Change config to filter
#
snarfed
we can keep thinking about constant vs filter, but seems low priority, and probably not needed for 2.0 release, since it doesn't fix any existing problem. i'm inclined to keep the new lazy loading and otherwise revert the filter back to the constant for now, to avoid adding unnecessary complexity
#
snarfed
let me know if you disagree!
radiofree2 joined the channel
#
snarfed
feel free to do just the lazy loading in a new PR and leave this one as is if that's easier!
#
aaronpk
🎉 whatever gets this out the door faster!
[tswast] joined the channel
#
miklb_
I second aaronpk
#
GWG
I am getting rid of the filter because other plugins can just remove the hook from plugins_loaded
#
aaronpk
I will say one thing about wordpress that is nice is their dedication to backwards compatibility. I was able to use the existing microformats theme (2008) on a current version of wordpress.
#
GWG
aaronpk: Moving the site?
#
aaronpk
investigating
#
aaronpk
any tips on installing wordpress in a wordpress/ folder but serving the URLs from the root domain in nginx? googling is not turning up anything helpful
#
GWG
That was the thing someone was doing that broke IndieAuth
#
aaronpk
oh I think I got it
#
miklb_
aaronpk I have that
#
aaronpk
where did you find docs on how to do it?
#
miklb_
but I've been doing it so long now that I just copy/paste config files
#
miklb_
I also rename my wp-content directory
#
miklb_
because most hackers are lazy and only target the default path
[kevinmarks] joined the channel
#
miklb_
was a lot handier before wp cli
#
miklb_
the wp in its own directory. Used to just use svn/git to update on the server
#
miklb_
and then if you want, you can version control the entire thing with wp as a submodule. but wpli is handier now
#
miklb_
wp cli
clorophormo and gRegorLove joined the channel
#
GWG
Okay, just merged a bunch of PRs to the JSONFeed WordPress plugin repo
#
GWG
Need one more PR and then manton's help to push it
tantek__ joined the channel