Version 1.0.45

This commit is contained in:
ultimatemember
2015-02-08 13:38:41 +02:00
parent 1df7d344e3
commit 98ce5bc2ef
3 changed files with 19 additions and 5 deletions
+13 -3
View File
@@ -319,13 +319,23 @@ class UM_User {
}
$ultimatemember->files->remove_dir( um_user_uploads_dir() );
require_once( ABSPATH . 'wp-admin/includes/user.php' );
if ( is_multisite() ) {
if ( !function_exists('wpmu_delete_user') ) {
require_once( ABSPATH . 'wp-admin/includes/ms.php' );
}
wpmu_delete_user( $this->id );
} else {
if ( !function_exists('wp_delete_user') ) {
require_once( ABSPATH . 'wp-admin/includes/user.php' );
}
wp_delete_user( $this->id );
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
Plugin Name: Ultimate Member
Plugin URI: http://ultimatemember.com/
Description: Ultimate Member is a powerful community and membership plugin that allows you to create beautiful community and membership sites with WordPress
Version: 1.0.44
Version: 1.0.45
Author: Ultimate Member
Author URI: http://ultimatemember.com/
*/
+5 -1
View File
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
Requires at least: 4.1
Tested up to: 4.1
Stable Tag: 1.0.44
Stable Tag: 1.0.45
License: GNU Version 2 or Any Later Version
@@ -185,6 +185,10 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
== Changelog ==
= 1.0.45: February 8, 2015 =
* Fixed: Multisite bug php Fatal error: call to undefined function wpmu_delete_user()
= 1.0.44: February 8, 2015 =
* Tweak: improved performance: unused user photos are deleted when user upload