• Hi,

    I’ve noticed that if I ever deactivate this plugin (e.g. while debugging issues with unrelated plugins), that I lose my list of excluded pages, which means that all of my hidden pages start showing up again in my HTML sitemap when I reactivate it.

    Is there any way to ensure that these settings are retained when the plugin is temporarily deactivated?

    Thanks,

    Nikki

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tony Archambeau

    (@funnycat)

    Hi,
    This is an intentional behavior. The idea is to avoid keeping data about the plugin when it’s not used anymore.
    If you wonder how it works, it’s in the source code of wp-sitemap-page.php file, around line 104, these functions : delete_option().

    Please, be aware if you modify the source code, this will be overwritten each time there is a new version of the plugin.

    I hope this feedback will helps you.
    Have a nice day.
    Sincerely,
    Tony

    Thread Starter kaplunkiigirl

    (@kaplunkiigirl)

    Hi Tony,

    Thanks for explaining that this is an intended feature.

    It’s an unfortunate behaviour as it stands because it makes debugging unrelated issues a right pain in the “you know what”.

    Any chance of adding a checkbox, like many other plugins have, to choose to keep the settings, even when the plugin is deactivated?

    Thanks,

    Nikki

    In my humble opinion, when the plugin is deactivated, data should remain. When the plugin is uninstalled, data should be deleted.

    In case it helps. Thank you all.

    Thread Starter kaplunkiigirl

    (@kaplunkiigirl)

    Yes, @artgoddess that would be my preferred behaviour too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deactivating plugin loses list of excluded pages’ is closed to new replies.