mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
Version number variable changed
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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() );
|
||||
|
||||
@@ -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') ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user