WordPress quick tip for multi-author blogs

My brother and cousin co-author a general humor blog, hosted on my server, and recently they complained to me that they couldn’t edit comments, which I’ve always been able to do in my own blogs.

Investigating a little, their problem was that they couldn’t edit comments in each others’ posts – even their own comments. Looking at the code, it’s written so that a user can only edit comments in other people’s posts if they’re of a lower level. In a way, it makes sense… but on multi-author blogs like that one, where both users have the same level, and trust each other, it’s better if you can also edit stuff from someone of your own level – including comments on their posts.

If you want to change it in your own blog(s), do the following: edit the file wp-content/functions-post.php. Search for the function user_can_edit_post. Inside that function, change the following line:

|| ($author_data->user_level > $post_author_data->user_level)

to

|| ($author_data->user_level >= $post_author_data->user_level)

Not rocket science, but it can save you a couple of minutes. :)

Related posts:

  1. Blogging tips #10.5: Be a good host
  2. A day off from reading blogs?
  3. Blogging tips #3.5: Be quick or be dead

2 Responses to “WordPress quick tip for multi-author blogs”

  1. Cinclaw says:

    Oh, it’s true, it’s true! :)

  2. [...] author — 1 site 2 authors, this is how each can edit the others’ work [...]

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.


Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
This work by Pedro Timóteo is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal.