Hot fix for Disclose Secret Plugin – WordPress

by Sante J. Achille on August 7, 2007 · 12 comments

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 …

Polariod Delicious Icon Polariod Digg Icon Polariod Email Icon Polariod Facebook Icon Polariod Reddit Icon Polariod StumbleUpon Icon Polariod Twitter Icon

{ 10 comments… read them below or add one }

Mike Lanxess August 16, 2007 at 10:25

super, thx. seems to be working!!!

Sante J. Achille August 16, 2007 at 10:29

Yes it works :)

Tord Andersson September 14, 2007 at 02:59

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.

Burçlar September 13, 2008 at 14:28

Excellent! Thank you

david norden October 24, 2008 at 10:14

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

David Norden

Hot vs. Not January 4, 2009 at 17:51

thanks i had the same problem

Isfiske January 15, 2009 at 10:28

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. :)

Jermey Dubois January 16, 2009 at 07:45

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.

Sante J. Achille January 16, 2009 at 08:52

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 !!)

Garnet April 6, 2009 at 01:42

@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.

Leave a Comment

{ 2 trackbacks }

Previous post:

Next post: