Updating the install section for include
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 12:43:52 +0000 (08:43 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 12:43:52 +0000 (08:43 -0400)
Switching to use include_once. This will help with later versions of
wordpress.

index.php
models/database.php

index dacf501..8775781 100644 (file)
--- 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
index 8399cd8..412a51c 100644 (file)
@@ -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} (