From 8776bb18e1268df99cb66ed6e30f31e3362fd1dd Mon Sep 17 00:00:00 2001 From: ultimatemember Date: Tue, 20 Jan 2015 14:43:05 +0200 Subject: [PATCH] Version number variable changed --- admin/core/um-admin-redux.php | 2 +- admin/core/um-admin-tracking.php | 4 ++-- index.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/core/um-admin-redux.php b/admin/core/um-admin-redux.php index d500e14f..f721fedc 100644 --- a/admin/core/um-admin-redux.php +++ b/admin/core/um-admin-redux.php @@ -53,7 +53,7 @@ $this->args = array( 'opt_name' => 'um_options', // This is where your data is stored in the database and also becomes your global variable name. 'display_name' => 'Settings', // Name that appears at the top of your panel - 'display_version' => ULTIMATEMEMBER_VERSION, // Version that appears at the top of your panel + 'display_version' => ultimatemember_version, // Version that appears at the top of your panel 'menu_type' => 'submenu', //Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only) 'allow_sub_menu' => false, // Show the sections below the admin menu item or not 'menu_title' => __('Settings', 'redux-framework-demo'), diff --git a/admin/core/um-admin-tracking.php b/admin/core/um-admin-tracking.php index 30c845ee..a1107a50 100644 --- a/admin/core/um-admin-tracking.php +++ b/admin/core/um-admin-tracking.php @@ -37,7 +37,7 @@ class UM_Admin_Tracking { $data['wp_version'] = get_bloginfo( 'version' ); - $data['version'] = ULTIMATEMEMBER_VERSION; + $data['version'] = ultimatemember_version; $data['email'] = get_bloginfo( 'admin_email' ); @@ -116,7 +116,7 @@ class UM_Admin_Tracking { 'httpversion' => '1.0', 'blocking' => true, 'body' => $this->data, - 'user-agent' => 'UM/' . ULTIMATEMEMBER_VERSION . '; ' . get_bloginfo( 'url' ), + 'user-agent' => 'UM/' . ultimatemember_version . '; ' . get_bloginfo( 'url' ), ) ); update_option( 'um_tracking_last_send', time() ); diff --git a/index.php b/index.php index 266e1a60..69294535 100644 --- a/index.php +++ b/index.php @@ -16,7 +16,7 @@ Author URI: http://ultimatemember.com/ define('um_path',plugin_dir_path(__FILE__ )); define('um_plugin', plugin_basename( __FILE__ ) ); - define('ULTIMATEMEMBER_VERSION', $plugin_data['Version'] ); + define('ultimatemember_version', $plugin_data['Version'] ); $plugin = um_plugin; @@ -30,9 +30,9 @@ Author URI: http://ultimatemember.com/ ***/ function ultimatemember_activation_hook( $plugin ) { - if( $plugin == um_plugin && get_option('um_version') != ULTIMATEMEMBER_VERSION ) { + if( $plugin == um_plugin && get_option('um_version') != ultimatemember_version ) { - update_option('um_version', ULTIMATEMEMBER_VERSION ); + update_option('um_version', ultimatemember_version ); exit( wp_redirect( admin_url('admin.php?page=ultimatemember-about') ) );