Update of Allow Categories WordPress plugin

I’m using the allow categories wordpress plugin, but since the “recent” upgrades (I tend to postpone updates) some problems occured: I could not add new posts (permission denied) nor see unattached images in my media library.

Today I finally decided to take a look, add some debugging and fix the problems.

You can find the fix here: allowcategories
Use at your own risk: just edit the plugin using the plugin editor in wordpress.

2 Comments on “Update of Allow Categories WordPress plugin

  1. Thanks very much for this fix. I had the same problem. Now, to avoid future confusion with maybe update from the original author, I would like to know what you did. Maybe you could revise your version of and add remarks like: ## —changed by [your name] on [the date that happened] –## and rem out the old code lines and put the changes between rem lines. That way I (and others) could easily find the changes.

    Thanks in Advance,

    Gideon van Melle

  2. Hi Gideon,

    as I have all my plugins in subversion, I have no need for these annotations. But for your convenience I updated the link. The new file contains these comments “// 0.6.7: Added by flogiston.net”.
    The only relevant change is on line 227: I changed “if (!$trouve) {” to “if (!$trouve && !empty($article->post_content)) {”

    The other change is just a try/catch block to make the plugin handle errors a bit better but isn’t really important.

    HTH,
    Flogiston

Leave a Reply

Your email address will not be published.