Plugin resets sitemap settings when upgrade to newer version
-
Hi,
I was wondering if anyone can help. I use this fantastic plugin for a lot of websites and by default I leave all settings in the plugin un checked so we have a simple page sitemap with no inclusions of the blog, authors, categories or anything else except pages and posts.
The issue I am currently having is each time the plugin is updated it actually resets the settings to default and checks all the settings. We are trying to keep the plugin up to date on all our websites but having to configure our settings each time the plugin is updated can become annoying.
I think this is caused by the following line of code:
xml-sitemaps.php
static function init_options() { $defaults = array( 'inc_authors' => true, 'inc_categories' => true, 'inc_tags' => true, 'inc_archives' => true, 'exclude_pages' => '', 'mobile_sitemap' => false, 'version' => xml_sitemaps_version, 'empty_author' => false, );
I have tried to alter these settings from “True” to “False” but as you can guess once an update for this plugin comes along it will over ride them.
I am wondering if there is a work around for this plugin or do you have any plans to save existing settings while the plugin is upgraded or deactivated (as the same happens on deactivation).
- The topic ‘Plugin resets sitemap settings when upgrade to newer version’ is closed to new replies.