Search Marketing Consultant

Web Marketing & Search Engine Consultant

Hot fix for Disclose Secret Plugin – WordPress

WordPress: hot fix for Disclose Secret - a plugin for WordPress from the WordPress community

Disclose Secret is plugin I have installed and will be using to share information and news with registered users. It works very nicely with Role Manager .

The WordPress 2.2.1 update brought along changes creating problems with Disclose Secret that was no longer working.

There is a hot fix we found with Marco a few days ago.

Here’s how you can fix it yourself:

  • Login to your server
  • Access the Disclose Secret folder (under /wp-content/plugins/)
  • download the file runtime.php
  • open with a textpad
  • comment out the line #48 as follows:
    //add_filter('edit_category', array(&$this, 'filter_edit_category'));
  • Save the File
  • Upload to server
  • Activate plugin

That’s all there is to it 🙂

Like I said this is a hot fix – let’s hope an update is in the pipeline …

12 Replies

  1. super, thx. seems to be working!!!

  2. Tord Andersson

    I changed the SQL used in the funtion “filter_edit_category” to:

    $count = $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->post2cat, $wpdb->posts WHERE $wpdb->posts.ID=$wpdb->post2cat.post_id AND post_status = ‘publish’ AND category_id = ‘$cat_id'”);

    For me it seems to be working a lot better now, and am running on 2.2.3. Not sure this is a proper fix though and have only been testing it for 10 minutes.

  3. Burçlar

    Excellent! Thank you

  4. This solved my hot update problems with wordpress. Thanks you for helping me out, keep up the good business.

    David Norden

  5. Hot vs. Not

    thanks i had the same problem

  6. I guess i read this blog to late. I had this problem a while ago and it bothered the heck out of me. It has now been corrected so i don’t need to do anything now. Think i need to do a little more researching on my problems and a little less hair pulling. 🙂

  7. Will this plugin work with the latest version of wordpress? I hate to go through the trouble of updating to the latest greatest…always seems to be problematic resulting a heck of a lot of work.

  8. Hi Jeremy,
    I wouldn’t know if it does work on teh latest version of wordpress and I do advise EXTREME CAUTION in upgrading to newer versions: In my experience upgrading from one version to the next of wordpress, especially if you run a blog with many plugins, can be a nightmare: I was stuck on version 2.2 (or 2.3) because of a problme related to th e use of Ultimate Tag warrior – it seemed impossibile to find the right way to seamlessly move everything, all my rewrites and tag pages went missing on the development machine … and nothing on the web to help me get out of the mess ! A work around solution was then found by my systems guy thanks to a few people he knows. So you are completely right about being very cautious and I might also add that this kind of plugin is pushing wordpress a bit to th elimit of it’s capabilities to work as a CMS (because you are asking wordpress to do tings a CMS would do) so check out alternative solutions that might integrate this funcion as a separate entity under the same domain name (keep all those links under the same roof my friend !!)

  9. @Sante,

    Yes,I think your concern is reasonable.Fortunately,the new wordpress version will give friendly prompt to upgrade the plugin to to a suitable version.