} if (!isset($o['version'])) { xml_sitemaps::clean(WP_CONTENT_DIR . '/sitemaps'); } $hostname = php_uname('n'); if ($updated_opts['ortho_defaults_set'] == false && in_array($hostname, array('orthohost.com', 'vps.orthohosting.com'))) { $updated_opts['inc_authors'] = false; $updated_opts['inc_categories'] = false; $updated_opts['inc_tags'] = false; $updated_opts['inc_archives'] = false; $updated_opts['ortho_defaults_set'] = true; xml_sitemaps::clean(WP_CONTENT_DIR . '/sitemaps'); } $updated_opts['version'] = xml_sitemaps_version; update_option('xml_sitemaps', $updated_opts); return $updated_opts; } # init_options() /** * admin_menu() * * @return void **/ function admin_menu() { add_options_page(__('XML Sitemaps', 'xml-sitemaps'), __('XML Sitemaps', 'xml-sitemaps'), 'manage_options', 'xml-sitemaps', array('xml_sitemaps_admin', 'edit_options')); } } # xml_sitemaps $xml_sitemaps = xml_sitemaps::get_instance();