mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed show avatars on first install (fixed by Mansur);
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user