projects
/
WP-Plugins
/
glm-employment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ed7bd3
)
use update option
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 25 Sep 2014 12:57:50 +0000
(08:57 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 25 Sep 2014 12:57:50 +0000
(08:57 -0400)
This will create the option also.
controllers/admin.php
patch
|
blob
|
history
diff --git
a/controllers/admin.php
b/controllers/admin.php
index
308b142
..
510c5b8
100644
(file)
--- 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);
}
}