#wordpress 2020-10-19

2020-10-19 UTC
nickodd, gRegorLove and [schmarty] joined the channel; nickodd left the channel
#
beko
Huh. Weird. I posted a photo yesterday. The usual post-kinds photo. Bridgy picked up the title like it would do with an article but also the u-photo. Not so the content. I wonder what went wrong. Microformats look fine to me.
[tonz] joined the channel
#
[tonz]
Good suggestion [chrisbergr]. An addition might be webmention (I at least send and receive mentions on my own posts). What I am thinking of is having a graph alongside a post that shows internal links at 2 steps, so the stuff linked to the stuff linked to the post. It is a distance where associations happen
#
sknebel
beko: if there's a title, thats what bridgy picks for tweets afaik
#
sknebel
although I see that it didn't for previous posts, so I might be wrong on that
#
beko
It only used to do this for articles (which is fair I guess) sknebel
#
sknebel
I didn't think it considered the post type for that, but the difference is indeed weird. you should be able to check the bridgy logs and compare whats reported there between two posts?
#
beko
My workflow for photos is posting with Indigenous for Android. That ends up as photo with name=image and and content=foo.
#
beko
Yeah I see. 8 days ago the name property was not used. Now it is. I guess this is a compat thingy with post-kinds when the internal format changed.
#
beko
https://beko.famkos.net/wp-content/uploads/2020/10/gnome-shell-screenshot-IPLIS0.png GWG to my rescue :D This is how a photo note looks like now with the recent updates of post-kinds resulting in bridgy not syndicating the content. The property is part of the plugin if I know this correctly.
#
beko
Heh. Can't say it looks nice with that title on the page as well.
[chrisbergr] joined the channel
#
[chrisbergr]
I hope you all have good security measures in place. In the last 2 months, many of my clients' wordpress installations have had to fight off extreme attacks. Worst of all, some kind of vulnerability has resulted in code in admin-ajax.php that sends error messages to a telegram chat.
#
beko
So… what plugins do all have in common? :)
#
[chrisbergr]
ACF & Defender Pro. But Defender came after problems occured on some pages...
#
[chrisbergr]
also in includes/user.php.. So I guess after log in, they have all the credentials...
#
beko
hu. mebbe a good idea to block any access to the api endpoint until this is resolved. IF there is no legit reason to reach the tg api I mean
#
beko
is that a token for a bot?
#
beko
feeling like tainting that database with garbage [chrisbergr]? :):)
#
[chrisbergr]
I hate this kind of problems. Waste of time. But yes, I can handle it. My intention was to give you guys just a friendly reminder, that there is always this threat. And plugins like Defender or Wordfence are important (imo)
#
beko
I'm sorting this out on system level. Not a huge fan of script firewalling. Whatever works I guess
#
beko
[chrisbergr]++ thanks for heads up oc
#
Loqi
[chrisbergr] has 2 karma in this channel over the last year (4 in all channels)
#
[chrisbergr]
@beko It's not just firewalling. It's also maleware scanning, comparing all files with their repositories, getting automatic reports about firewall, maleware and audit logging and a lot of other stuff.
#
[chrisbergr]
But I understand not being a fan of it 🙂
#
beko
ye. tbf we mostly use WP as outlet for internal systems. Stuff is completly generated and deployed automatically so it's reset all the time. Nothing on disk survives this. (not my own blog, obvisously :D). I still forwarded your snippet to coworkers.
#
GWG
beko: Letting pictures have a name isn't a bad thing. Problem being that if you don't set one...it uses that random string
#
GWG
But I see what is going on with the mark-up. It is reading it as the name of the h-entry. Will fix that.
#
beko
GWG: almost all photos are shared via Indigenous for Android. If I set no name I didn't expect it to get a name and this is a kinda recent change. Should I report this to Indigenous instead?
#
beko
I checked. It's in the `Title`
#
beko
Mebbe it shouldn't do that automatically on Upload
#
beko
Kinda defeats the purpose of a "quick share"
#
beko
There is not even a title field in Indigenous so this may be added by the MicroPub endpoint
#
GWG
It's added by WordPress itself, which generates a title. Built in feature
#
beko
dang. So I have to look for a plugin to disable this "feature" again?
#
GWG
No, I have to change the markup so I don't markup the name.
#
GWG
Displaying it isn't the issue
#
beko
I'd be happy not displaying it too. There is never anything legit in that title when uploading via micropub. Removed a title manually for testing. It doesn't show up in the microformats any more as well so this is what I want. I found a filter on wp_insert_attachment_data that would probably do the trick:
#
beko
https://wordpress.stackexchange.com/questions/211865/prevent-wordpress-from-adding-image-title-automatically - could expand to a filename matcher and ommit only when it matches the filename
#
GWG
I usually set the title in the media library, but will see what I can do]
#
beko
ty GWG++
#
Loqi
GWG has 33 karma in this channel over the last year (141 in all channels)
#
GWG
It might be a day or two, I have some life stuff.
#
beko
ye, reallife first. Saying this for a decade :)
#
GWG
beko: I just returned home from hiding out in the woods and my apartment is a disaster area. I need to put away all the stuff I hauled up to the woods.
#
GWG
But it should be a quick fix, which is why I think I can still do it this week despite the fact that this looks like a two week mess
jeremych_ and [chrisbergr] joined the channel
#
[chrisbergr]
This is basically a bad thing from WordPress. The title attribute is not important for images at all. Instead, they should fill the Alt attribute by default. Anyway, this channel is not the right place to complain about it.
#
beko
Why not? :)
#
sknebel
it's not about the title attribute, but about how the image "post title" is handled
#
sknebel
and since it started with how that interacts with indieweb markup when using the plugins it seems quite relevant
#
[chrisbergr]
I meant that in general. If you are not careful, just upload your image and embed it in the content, you will have a title attribute (this yellow tooltip) but no alt, wich means invalid HTML.
#
beko
True. Speaking of: descriptions in Indigenous tend to not end up in alt as well. Another issue I've to check someday.
#
beko
.oO(Or was it bridgy not seeing alt?)
#
sknebel
bridgy supports alt in principle
#
beko
I'll check this eventually and raise a proper ticket. accesibility is slowly moving into my focus
#
[chrisbergr]
doing a11y stuff not only makes you a better human, but also gives you an SEO boost without extra effort.
gRegorLove joined the channel
#
beko
[chrisbergr]: zero *** give on seo for my stuff but I get the idea ;)
[tw2113_Slack_] joined the channel
#
[tw2113_Slack_]
do it for future beko when you may not have the best eyesight or something tragic happens that affects your ability to function as a whole
#
beko
[tw2113_Slack_]: That's what I'm saying.
#
[tw2113_Slack_]
LD
#
[tw2113_Slack_]
erp 😄
[Emma_Humphries], [snarfed] and [KevinMarks] joined the channel
#
GWG
[chrisbergr]: It's my fault. It's actually an enhancement gone wrong. But I need to improve the display
[chrisaldrich] joined the channel
#
GWG
All media in WordPress has a name field, so I started displaying it
#
GWG
I should add more logic behind it
[fluffy], [schmarty], nickodd, [chrisbergr] and [kimberlyhirsh] joined the channel; nickodd left the channel