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. No such thing as "blog" or "blogger"?
  2. Spam Karma 2 plugin
  3. Blogging tips #10.5: Be a good host
  4. Blogging tip: promoting blogs that link to yours
  5. How to track the number of comments in your blogs

1 Response to “WordPress quick tip for multi-author blogs”


  1. 1 Cinclaw

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

  1. 1 Blogging Challenge: WordPress Treasure Hunt at MaxPower

Leave a Reply




Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal