WordPress.org

Ready to get started?Download WordPress

Forums

WP-Ajaxify-Comments
[resolved] Unable to clear all settings (4 posts)

  1. HarroH
    Member
    Posted 1 year ago #

    Hi Guys,

    First of all, great plugin. Works fine. However, it seems there is a small bug present in your plugin. When you don't change anything in the settings but on enable the plugin, you are unable to disable it again. This comes from the fact that it seems to be unable to clear the entire settings form. So for example, when I fill in 1 selector, I'm able to disable the plugin again but I'm then unable to clear the selector field. So it seems there always need to be one field present.

    I have not looked at the entire struture of the plugin, I only looked for a solution to my problem and changed this part on line 298 of wp-ajaxify-comments.php:

    function wpac_delete_option($option) {
    	global $wpac_options;
    	wpac_load_options();
    	unset($wpac_options[$option]);
    }

    to:

    function wpac_delete_option($option) {
    	global $wpac_options;
    	update_option(WPAC_OPTION_KEY, $wpac_options);
    }

    Which did the trick for me. You guys might wanna look into this. And again, great plugin, keep up the good work.

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your comment.

    The bug was in the wpac_load_options method. Please revert your changes and update to the most recent developer version 0.13.1 (http://downloads.wordpress.org/plugin/wp-ajaxify-comments.zip).

    Please let me know, if this bugfix resolves your issues.

  3. HarroH
    Member
    Posted 1 year ago #

    Hi JanJonas,

    This did the trick. Thanks for the quick reply.

    Cheers!

  4. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome! Thanks for the feedback.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.