I am making admin page for plugin. Using Smart Archives Reloaded as reference, but simplifying here and there (less objects, omitting localization, etc).
So I have scbOptions object as global $rds_options variable, setup in init function of plugin.
One of the option fields is called known_sites, blank array by default, filled by function scheduled with WP Cron.
I setup my AdminPage class RDS_Settings and put in init
if ( is_admin() ) scbAdminPage::register('RDS_Settings', __FILE__, $rds_options);
RDS_Settings is not referencing or expected to change known_sites field. But when I hit Save Changes on my settings page known_sites is changed to empty string.
Am I doing everything right? Is this expected behavior? If it is - should options not expected to be changed by form stored separately or something?
Thanks in advance.