If no session then start one.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 9 Nov 2017 15:57:53 +0000 (10:57 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 9 Nov 2017 15:57:53 +0000 (10:57 -0500)
This is for saving the search for member list.

index.php
readme.txt
setup/adminHooks.php

index 4aa662e..a1cab2f 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 2.10.18
+ * Version: 2.10.19
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabase
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.10.18
+ * @version 2.10.19
  */
 
 // Check that we're being called by WordPress.
@@ -44,7 +44,7 @@ if (!defined('ABSPATH')) {
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.18');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.19');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32');
 
 // Check if plugin version is not current in WordPress option and if needed updated it
index aadf949..3f3f1fa 100644 (file)
@@ -66,7 +66,7 @@ There is of course much more to this.
 (none)
 
 == Changelog ==
-= 2.10.18 =
+= 2.10.17 - 2.10.19 =
 * Improve member search in admin. Can now use Back To Search button to return
   to your last search. Resets when list page is called.
 * Member name search improved.
index 7923c20..ffb8267 100644 (file)
@@ -365,3 +365,10 @@ function glm_admin_import_help_tab () {
          __( 'Help Guide' ) . '</a></p>'
      );
 }
+
+// If no session then start one.
+add_action( 'init', function(){
+    if ( ! session_id() ) {
+        session_start();
+    }
+});