private static function setup() { if (get_option('gf_user_registration_version') == self::$version) { return; } // loading data lib require_once self::get_base_path() . '/data.php'; GFUserData::update_table(); // create signups table for non-multisite installs if (!is_multisite()) { require_once self::get_base_path() . '/includes/signups.php'; GFUserSignups::create_signups_table(); } update_option('gf_user_registration_version', self::$version); }
private static function setup() { if (get_option("gf_user_registration_version") != self::$version) { GFUserData::update_table(); } update_option("gf_user_registration_version", self::$version); }