diff --git a/includes/class-init.php b/includes/class-init.php index bd268163..613606b2 100644 --- a/includes/class-init.php +++ b/includes/class-init.php @@ -221,9 +221,14 @@ if ( ! class_exists( 'UM' ) ) { function activation() { //first install $version = get_option( 'um_version' ); - if ( ! $version ) + if ( ! $version ) { update_option( 'um_last_version_upgrade', ultimatemember_version ); + //show avatars on first install + if ( ! get_option( 'show_avatars' ) ) + update_option( 'show_avatars', 1 ); + } + if ( $version != ultimatemember_version ) update_option( 'um_version', ultimatemember_version ); @@ -892,9 +897,6 @@ if ( ! class_exists( 'UM' ) ) { require_once 'core/um-filters-misc.php'; require_once 'core/um-filters-commenting.php'; - if ( ! get_option( 'show_avatars' ) ) - update_option( 'show_avatars', 1 ); - } function widgets_init() {