From: Steve Sutton Date: Fri, 7 Jul 2017 12:43:52 +0000 (-0400) Subject: Updating the install section for include X-Git-Tag: v2.1.2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=68b41f1530dd7e93050e5afc6c0eb375bd92a396;p=WP-Plugins%2Fglm-employment.git Updating the install section for include Switching to use include_once. This will help with later versions of wordpress. --- diff --git a/index.php b/index.php index dacf501..8775781 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ /** * Plugin Name: Gaslight Media Employment * Description: Online Employment Application for Gaslight Media Clients. - * Version: 2.1.1 + * Version: 2.1.2 * Author: Steve Sutton * Author URI: http://www.gaslightmedia.com * License: All right reserved diff --git a/models/database.php b/models/database.php index 8399cd8..412a51c 100644 --- a/models/database.php +++ b/models/database.php @@ -69,7 +69,7 @@ class glm_employment_models_database archived BOOLEAN DEFAULT false NOT NULL, UNIQUE KEY id (id) ) {$charset_collate}"; - include ABSPATH . 'wp-admin/includes/upgrade.php'; + include_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta($sql); $sql = "CREATE TABLE {$this->appFormTable} (