* Plugin Name: GLM Members Database Contacts
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.1.3
+ * Version: 1.1.4
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabaseContacts
* @author Gaslight Media <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.1.3
+ * @version 1.1.4
*/
// Check that we're being called by WordPress.
* version when there's a change in the database!! Use the
* version nunmber of that release for the DB version.
*/
-define('GLM_MEMBERS_CONTACTS_PLUGIN_VERSION', '1.1.3');
+define('GLM_MEMBERS_CONTACTS_PLUGIN_VERSION', '1.1.4');
define('GLM_MEMBERS_CONTACTS_PLUGIN_DB_VERSION', '0.0.3');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
/* Remove the "Dashboard" from the admin menu for non-admin users */
function glm_hide_admin_dashboard () {
global $current_user, $menu, $submenu;
- get_currentuserinfo();
+ $current_user = wp_get_current_user();
if( in_array( 'glm_members_own_entity_manager', $current_user->roles ) ) {
reset( $menu );