array( 'active' => self::$_options['active_referer'], 'cron' => self::$_options['cron_referer'], 'regexp' => self::$_options['referer_regexp'], 'blacklist' => self::$_options['referer'], ), 'target' => array( 'active' => 0, 'cron' => 0, 'regexp' => 0, 'blacklist' => array(), ), 'ip' => array( 'active' => 0, 'blacklist' => array(), ), 'version' => 1.4, ); if ( is_multisite() && array_key_exists( STATIFYBLACKLIST_BASE, (array) get_site_option( 'active_sitewide_plugins' ) ) ) { update_site_option( 'statify-blacklist', $options ); } else { update_option( 'statify-blacklist', $options ); } self::update_options(); } // Version older than current major release. if ( self::VERSION_MAIN > self::$_options['version'] ) { // Merge default options with current config, assuming only additive changes. $options = array_merge_recursive( self::default_options(), self::$_options ); $options['version'] = self::VERSION_MAIN; if ( ( is_multisite() && array_key_exists( STATIFYBLACKLIST_BASE, (array) get_site_option( 'active_sitewide_plugins' ) ) ) ) { update_site_option( 'statify-blacklist', $options ); } else { update_option( 'statify-blacklist', $options ); } } } }