From: Steve Sutton Date: Thu, 25 Sep 2014 12:57:50 +0000 (-0400) Subject: use update option X-Git-Tag: v1.0.1~36 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c26749b64547f0a0e026d256d812f0cd958db83b;p=WP-Plugins%2Fglm-employment.git use update option This will create the option also. --- diff --git a/controllers/admin.php b/controllers/admin.php index 308b142..510c5b8 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -60,7 +60,7 @@ class AdminController require_once ABSPATH . 'wp-admin/includes/upgrade.php'; \dbDelta($sql); - \add_option(SELF::DB_OPTION, SELF::DB_VERSION); + \update_option(SELF::DB_OPTION, SELF::DB_VERSION); } public function initializeData() @@ -85,7 +85,6 @@ class AdminController if (\get_option(SELF::DB_OPTION) != SELF::DB_VERSION) { $this->installApplication(); } - \update_option(SELF::DB_OPTION, SELF::DB_VERSION); } }