WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Dirty Fix for Enhanced Recent Posts on WP 3.5

[Resolved] Dirty Fix for Enhanced Recent Posts on WP 3.5

  • strawbyte
    Member

    @strawbyte

    I think a few people have noticed that the ERP plugin breaks the widget area within the admin panel.

    This is because of a dodgy script [from line 200] in includes/widget-class.php within the plugin.

    I’m no expert on PHP and jScript integration but found some help on Otto’s blog on how to do the job properly. See: http://ottopress.com/2010/passing-parameters-from-php-to-javascripts-in-plugins/

    However, a quick and dirty fix is to chop out the script from the php file from line 200.

    All it does is control the display of two text boxes dependent on the value of the drop down. I use this widget all over the place on on site I manage and I can live with having to remember which ‘category numbers’ to put in which box when using the plug-in.

    http://wordpress.org/extend/plugins/enhanced-recent-posts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • groovysoul
    Member

    @groovysoul

    Fantastic! This worked for me. I just commented out lines 202 through 219 and now I’m back in business!

    Thanks so much for posting.

    Blake Imeson
    Participant

    @imeson

    Would someone mind giving me more info about what to get rid of to make this work?

    Anyone feel like fixing this for 3.5.x ?

    Thanks!

    Here’s a quick fix:

    • Go to the “Plugins” area
    • find the “Enhanced Recent Posts” plugin and click on “Edit”
    • within the widget-class.php file change %i% to __i__ (two underscores on both sides of “i”)

    That should do the trick.

    Sheila
    Member

    @hoffmangraphics

    I’ve only just discovered this glitch and was delighted to find such a simple fix. Thank you Aramaz!

    Plugin Author Vincent Mimoun-Prat
    Participant

    @vprat

    Hi,

    sorry for the delay, I was not closely monitoring the plugin’s support forum.

    Anyway, The plugin has been updated today. I have removed several deprecated function calls and fixed the script problem you have mentioned. Let me know if anything wrong is left or if you need some other feature.

    Regards,

    Vincent

    Blake Imeson
    Participant

    @imeson

    thanks a ton @vincent. Works great.

    Plugin Author Vincent Mimoun-Prat
    Participant

    @vprat

    You’re welcome. You can rate the plugin / write a review / make a donation if you want to show your appreciation. Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Dirty Fix for Enhanced Recent Posts on WP 3.5’ is closed to new replies.