vanessa
vanessa

When I post from the Micro.blog app the post gets to WordPress with comments closed, so I have to edit the post and tick the box in the admin panel. That said, I’m not sure it prevents comments, so maybe it doesn’t matter too much. Such a n00b still.

|
Embed
cn
cn

@vanessa probably better than disagreeing/fighting* with Known?

  • delete as applicable
|
Embed
vanessa
vanessa

@cn Quite likely. Wouldn’t know where to start with that! WordPress is enough of a learning curve for me…

|
Embed
stefp
stefp

@vanessa Try adding the code here to your child theme's functions.php. It worked for me. colinwalker.blog/19-12-201...

|
Embed
colinwalker
colinwalker

@vanessa I had the same issue so wrote this plugin to auto-enable comments on posts added via XML-RPC. Give it a try.

|
Embed
colinwalker
colinwalker

@stefp @vanessa Ha! Snap. 😆 I converted it to a plugin to make it easier (see my other response)

|
Embed
stefp
stefp

@colinwalker Thanks. I overlooked the plugin somehow.

|
Embed
colinwalker
colinwalker

@stefp Don’t think I blogged about it having already mentioned the code once.

|
Embed
vanessa
vanessa

@colinwalker Thanks, I'll add that! It's all fine with MarsEdit, but I'm not always/often at the Macbook. @stefp

|
Embed
smokey
smokey

@colinwalker I missed that (looks like you did it just before I showed up here, and it’s not mentioned in the bug)—but it seems like that code makes it impossible ever to have comments off, i.e., any time the post is written to the db, comments are forced on, rather than just when a post is created via XML-RPC. (“Seems” = I edited a post that M.b had made comments-closed when originally published, didn’t check the “Enable comments” box during editing, saved the updated post, and the post had “Enable comments” checked afterwards.) This is maybe not a problem for most use-cases, but the code’s effects definitely aren’t restricted to XML-RPC actions.

I did some exploration when I first noticed the bug, and I think the XML-RPC checks described in this comment are what’s needed, but I’ve never had the time to wrap my head around it all and write/test it.

|
Embed
colinwalker
colinwalker

@smokey You’re very probably right, in fact I’m certain you are. This was the quickest and dirtiest solution I could come up with so there will no doubt be issues. I’ll have a look at that link when I get the chance and see what I can come up with.

|
Embed
In reply to
smokey
smokey

@colinwalker Quick and dirty often wins the day :-) Thanks for having a look when you can.

|
Embed