Username Changer - Version 3.1.1

Version Description

Download this release

Release Info

Developer section214
Plugin Icon 128x128 Username Changer
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1.0 to 3.1.1

assets/banner-1544x500-rtl.png ADDED
Binary file
assets/banner-1544x500.png ADDED
Binary file
assets/banner-772x250-rtl.png ADDED
Binary file
assets/banner-772x250.png ADDED
Binary file
assets/icon-128x128.png ADDED
Binary file
assets/icon-256x256.png ADDED
Binary file
assets/screenshot-1.png ADDED
Binary file
assets/screenshot-2.gif ADDED
Binary file
includes/functions.php CHANGED
@@ -76,6 +76,8 @@ function username_changer_process( $old_username, $new_username ) {
76
  // One last sanity check to ensure the user exists
77
  $user_id = username_exists( $old_username );
78
  if ( $user_id ) {
 
 
79
  // Update username!
80
  $q = $wpdb->prepare( "UPDATE $wpdb->users SET user_login = %s WHERE user_login = %s", $new_username, $old_username );
81
 
@@ -127,6 +129,8 @@ function username_changer_process( $old_username, $new_username ) {
127
  }
128
  }
129
 
 
 
130
  $return = true;
131
  }
132
 
76
  // One last sanity check to ensure the user exists
77
  $user_id = username_exists( $old_username );
78
  if ( $user_id ) {
79
+ do_action( 'username_changer_before_process', $old_username, $new_username );
80
+
81
  // Update username!
82
  $q = $wpdb->prepare( "UPDATE $wpdb->users SET user_login = %s WHERE user_login = %s", $new_username, $old_username );
83
 
129
  }
130
  }
131
 
132
+ do_action( 'username_changer_after_process', $old_username, $new_username );
133
+
134
  $return = true;
135
  }
136
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: section214
3
  Donate link: https://section214.com/donate/
4
  Tags: user, username, display name, login
5
  Requires at least: 3.0
6
- Tested up to: 4.7.1
7
  Stable tag: 3.1.0
8
 
9
  Change usernames easily
@@ -38,7 +38,10 @@ Yes! Username Changer works out of the box with Co-Authors Plus.
38
  2. **Changing A Username** - Since version 3.0.0, usernames are now changed through the user profile page.
39
 
40
  == Changelog ==
41
- + Version 3.1.0 =
 
 
 
42
  * Added: Email notification support
43
  * Added: Nickname support
44
  * Improved: SQL performance
3
  Donate link: https://section214.com/donate/
4
  Tags: user, username, display name, login
5
  Requires at least: 3.0
6
+ Tested up to: 4.8
7
  Stable tag: 3.1.0
8
 
9
  Change usernames easily
38
  2. **Changing A Username** - Since version 3.0.0, usernames are now changed through the user profile page.
39
 
40
  == Changelog ==
41
+ = Version 3.1.1 =
42
+ * Added: Actions before and after update processing
43
+
44
+ = Version 3.1.0 =
45
  * Added: Email notification support
46
  * Added: Nickname support
47
  * Improved: SQL performance
username-changer.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Username Changer
4
  * Description: Change usernames easily
5
- * Version: 3.1.0
6
  * Author: Daniel J Griffiths
7
  * Author URI: http://section214.com
8
  * Text Domain: username-changer
@@ -85,7 +85,7 @@ if ( ! class_exists( 'Username_Changer' ) ) {
85
  define( 'USERNAME_CHANGER_URL', plugin_dir_url( __FILE__ ) );
86
 
87
  // Plugin version
88
- define( 'USERNAME_CHANGER_VER', '3.1.0' );
89
  }
90
 
91
 
2
  /**
3
  * Plugin Name: Username Changer
4
  * Description: Change usernames easily
5
+ * Version: 3.1.1
6
  * Author: Daniel J Griffiths
7
  * Author URI: http://section214.com
8
  * Text Domain: username-changer
85
  define( 'USERNAME_CHANGER_URL', plugin_dir_url( __FILE__ ) );
86
 
87
  // Plugin version
88
+ define( 'USERNAME_CHANGER_VER', '3.1.1' );
89
  }
90
 
91