WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] Bug Found, with solution (3 posts)

  1. LordAzriel
    Member
    Posted 2 years ago #

    When using the InnoDB storage engine there is a bug that causes all the weight options to be set to "do not consider" every time the plugin's options page is loaded. This is a particularly large bug as it completely deactivates YARPP by simply visiting its options page in the WordPress Admin.

    The solution is to change line 65 of the options.php to:
    $weight = yarpp_get_option('weight');

    Originally this line was:
    $weight = yarpp_set_option('weight');

    The "set" is a typo which causes an options array to be saved with weight => null.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Oh my heavens! Thank you for pointing this out. I'll push this out in the latest update. Thank you!

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Pushed out this beta: http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5.2b2.zip

    Once tested, hope to push it out quickly. It includes your typo fix but also some corrections which will try to actually look at the value of weight, and set it correctly if it got destroyed.

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic