From 48aaceaa0324701e4e7357898c7732e6d5d66cbf Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 9 Nov 2017 10:57:53 -0500 Subject: [PATCH] If no session then start one. This is for saving the search for member list. --- index.php | 6 +++--- readme.txt | 2 +- setup/adminHooks.php | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 4aa662e9..a1cab2fb 100644 --- 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 * @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 diff --git a/readme.txt b/readme.txt index aadf949f..3f3f1fa6 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 7923c209..ffb8267b 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -365,3 +365,10 @@ function glm_admin_import_help_tab () { __( 'Help Guide' ) . '

' ); } + +// If no session then start one. +add_action( 'init', function(){ + if ( ! session_id() ) { + session_start(); + } +}); -- 2.17.1