WP User Avatar - Version 3.1.2

Version Description

  • Fixed issue where registration with username requirement disabled wasn't working.
  • Fixed fatal error caused during user registration.
Download this release

Release Info

Developer Collizo4sky
Plugin Icon 128x128 WP User Avatar
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

changelog.txt CHANGED
@@ -1,4 +1,8 @@
1
- = 3.1.1 =
 
 
 
 
2
  * Scoped all admin CSS to reduce conflict with other plugin admin pages.
3
  * Fixed incompatibility with Max Mega Menu plugin.
4
  * Fixed PHP 8 Fatal error: Uncaught ValueError: Unknown format specifier.
1
+ = 3.1.2 =
2
+ * Fixed issue where registration with username requirement disabled wasn't working.
3
+ * Fixed fatal error caused during user registration.
4
+
5
+ = 3.1.1 =
6
  * Scoped all admin CSS to reduce conflict with other plugin admin pages.
7
  * Fixed incompatibility with Max Mega Menu plugin.
8
  * Fixed PHP 8 Fatal error: Uncaught ValueError: Unknown format specifier.
languages/wp-user-avatar.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: ProfilePress 3.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2021-05-22 13:28:33+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -3299,33 +3299,33 @@ msgstr ""
3299
  msgid "Log in"
3300
  msgstr ""
3301
 
3302
- #: src/Classes/RegistrationAuth.php:207
3303
  msgid "%s field is required"
3304
  msgstr ""
3305
 
3306
- #: src/Classes/RegistrationAuth.php:216
3307
  msgid ""
3308
  "<strong>ERROR</strong>: This username is invalid because it uses illegal "
3309
  "characters. Please enter a valid username."
3310
  msgstr ""
3311
 
3312
- #: src/Classes/RegistrationAuth.php:220
3313
  msgid "Email address is not valid"
3314
  msgstr ""
3315
 
3316
- #: src/Classes/RegistrationAuth.php:224
3317
  msgid "Passwords do not match"
3318
  msgstr ""
3319
 
3320
- #: src/Classes/RegistrationAuth.php:228
3321
  msgid "Email addresses do not match"
3322
  msgstr ""
3323
 
3324
- #: src/Classes/RegistrationAuth.php:232
3325
  msgid "Password is not strong"
3326
  msgstr ""
3327
 
3328
- #: src/Classes/RegistrationAuth.php:391
3329
  #: src/Themes/DragDrop/AbstractTheme.php:110
3330
  msgid "Registration successful."
3331
  msgstr ""
@@ -5796,9 +5796,9 @@ msgstr ""
5796
  msgid "ProfilePress"
5797
  msgstr ""
5798
 
5799
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.1) #-#-#-#-#
5800
  #. Plugin URI of the plugin/theme
5801
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.1) #-#-#-#-#
5802
  #. Author URI of the plugin/theme
5803
  msgid "https://profilepress.net"
5804
  msgstr ""
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ProfilePress 3.1.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2021-05-22 16:43:19+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
3299
  msgid "Log in"
3300
  msgstr ""
3301
 
3302
+ #: src/Classes/RegistrationAuth.php:209
3303
  msgid "%s field is required"
3304
  msgstr ""
3305
 
3306
+ #: src/Classes/RegistrationAuth.php:218
3307
  msgid ""
3308
  "<strong>ERROR</strong>: This username is invalid because it uses illegal "
3309
  "characters. Please enter a valid username."
3310
  msgstr ""
3311
 
3312
+ #: src/Classes/RegistrationAuth.php:222
3313
  msgid "Email address is not valid"
3314
  msgstr ""
3315
 
3316
+ #: src/Classes/RegistrationAuth.php:226
3317
  msgid "Passwords do not match"
3318
  msgstr ""
3319
 
3320
+ #: src/Classes/RegistrationAuth.php:230
3321
  msgid "Email addresses do not match"
3322
  msgstr ""
3323
 
3324
+ #: src/Classes/RegistrationAuth.php:234
3325
  msgid "Password is not strong"
3326
  msgstr ""
3327
 
3328
+ #: src/Classes/RegistrationAuth.php:393
3329
  #: src/Themes/DragDrop/AbstractTheme.php:110
3330
  msgid "Registration successful."
3331
  msgstr ""
5796
  msgid "ProfilePress"
5797
  msgstr ""
5798
 
5799
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.2) #-#-#-#-#
5800
  #. Plugin URI of the plugin/theme
5801
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.2) #-#-#-#-#
5802
  #. Author URI of the plugin/theme
5803
  msgid "https://profilepress.net"
5804
  msgstr ""
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: user registration, user profile, registration form, membership, login form
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
- Stable tag: 3.1.1
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -119,6 +119,10 @@ No. You can create and manage your forms, user profiles and member directories w
119
 
120
  == Changelog ==
121
 
 
 
 
 
122
  = 3.1.1 =
123
  * Scoped all admin CSS to reduce conflict with other plugin admin pages.
124
  * Fixed incompatibility with Max Mega Menu plugin.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
+ Stable tag: 3.1.2
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
119
 
120
  == Changelog ==
121
 
122
+ = 3.1.2 =
123
+ * Fixed issue where registration with username requirement disabled wasn't working.
124
+ * Fixed fatal error caused during user registration.
125
+
126
  = 3.1.1 =
127
  * Scoped all admin CSS to reduce conflict with other plugin admin pages.
128
  * Fixed incompatibility with Max Mega Menu plugin.
src/Classes/RegistrationAuth.php CHANGED
@@ -20,7 +20,7 @@ class RegistrationAuth
20
  *
21
  * @param int $user_id
22
  * @param string $password
23
- * @param int $form_id
24
  */
25
  public static function send_welcome_email($user_id, $password = '', $form_id = '')
26
  {
@@ -86,9 +86,11 @@ class RegistrationAuth
86
  *
87
  * @param array $post user form submitted data
88
  * @param int $form_id Registration builder ID
89
- * @param array $files Handle for global $_FILES
90
  * @param string $redirect URL to redirect to after registration.
91
  *
 
 
 
92
  * @return string
93
  */
94
  public static function register_new_user($post, $form_id = 0, $redirect = '', $is_melange = false, $no_login_redirect = '')
@@ -212,7 +214,7 @@ class RegistrationAuth
212
  }
213
  // --------END --------- validation for required fields ----------------------//
214
 
215
- if ( ! validate_username($post['reg_username'])) {
216
  $reg_errors->add('invalid_username', esc_html__('<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.', 'wp-user-avatar'));
217
  }
218
 
@@ -326,7 +328,7 @@ class RegistrationAuth
326
  // --------END --------- register custom field ----------------------//
327
 
328
  // if moderation is active, set new registered users as pending
329
- if (UserModeration::moderation_is_active()) {
330
  UserModeration::make_pending($user_id);
331
  }
332
 
@@ -342,7 +344,7 @@ class RegistrationAuth
342
  }
343
 
344
  // if user moderation is active, send pending notification.
345
- if (UserModeration::moderation_is_active()) {
346
  UserModerationNotification::pending($user_id);
347
  UserModerationNotification::pending_admin_notification($user_id);
348
  }
20
  *
21
  * @param int $user_id
22
  * @param string $password
23
+ * @param string $form_id
24
  */
25
  public static function send_welcome_email($user_id, $password = '', $form_id = '')
26
  {
86
  *
87
  * @param array $post user form submitted data
88
  * @param int $form_id Registration builder ID
 
89
  * @param string $redirect URL to redirect to after registration.
90
  *
91
+ * @param bool $is_melange
92
+ * @param string $no_login_redirect
93
+ *
94
  * @return string
95
  */
96
  public static function register_new_user($post, $form_id = 0, $redirect = '', $is_melange = false, $no_login_redirect = '')
214
  }
215
  // --------END --------- validation for required fields ----------------------//
216
 
217
+ if ( ! validate_username($username)) {
218
  $reg_errors->add('invalid_username', esc_html__('<strong>ERROR</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.', 'wp-user-avatar'));
219
  }
220
 
328
  // --------END --------- register custom field ----------------------//
329
 
330
  // if moderation is active, set new registered users as pending
331
+ if (class_exists('ProfilePress\Libsodium\UserModeration\UserModeration') && UserModeration::moderation_is_active()) {
332
  UserModeration::make_pending($user_id);
333
  }
334
 
344
  }
345
 
346
  // if user moderation is active, send pending notification.
347
+ if (class_exists('ProfilePress\Libsodium\UserModeration\UserModeration') && UserModeration::moderation_is_active()) {
348
  UserModerationNotification::pending($user_id);
349
  UserModerationNotification::pending_admin_notification($user_id);
350
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitfd2c4c8579a2572d6a3bac152f5ab0bf::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
29
  'aliases' =>
30
  array (
31
  ),
32
- 'reference' => 'a6e7eb3ec997340b9cc87aedd2690b41232e9507',
33
  'name' => '__root__',
34
  ),
35
  'versions' =>
@@ -41,7 +41,7 @@ private static $installed = array (
41
  'aliases' =>
42
  array (
43
  ),
44
- 'reference' => 'a6e7eb3ec997340b9cc87aedd2690b41232e9507',
45
  ),
46
  'collizo4sky/persist-admin-notices-dismissal' =>
47
  array (
29
  'aliases' =>
30
  array (
31
  ),
32
+ 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
33
  'name' => '__root__',
34
  ),
35
  'versions' =>
41
  'aliases' =>
42
  array (
43
  ),
44
+ 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
45
  ),
46
  'collizo4sky/persist-admin-notices-dismissal' =>
47
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitfd2c4c8579a2572d6a3bac152f5ab0bf
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitfd2c4c8579a2572d6a3bac152f5ab0bf
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitfd2c4c8579a2572d6a3bac152f5ab0bf', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInitfd2c4c8579a2572d6a3bac152f5ab0bf', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitfd2c4c8579a2572d6a3bac152f5ab0bf
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequirefd2c4c8579a2572d6a3bac152f5ab0bf($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequirefd2c4c8579a2572d6a3bac152f5ab0bf($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit35a2606b24b2ec8354fcabef156c5304', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire35a2606b24b2ec8354fcabef156c5304($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire35a2606b24b2ec8354fcabef156c5304($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -290,9 +290,9 @@ class ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf
290
  public static function getInitializer(ClassLoader $loader)
291
  {
292
  return \Closure::bind(function () use ($loader) {
293
- $loader->prefixLengthsPsr4 = ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf::$prefixLengthsPsr4;
294
- $loader->prefixDirsPsr4 = ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf::$prefixDirsPsr4;
295
- $loader->classMap = ComposerStaticInitfd2c4c8579a2572d6a3bac152f5ab0bf::$classMap;
296
 
297
  }, null, ClassLoader::class);
298
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit35a2606b24b2ec8354fcabef156c5304
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
290
  public static function getInitializer(ClassLoader $loader)
291
  {
292
  return \Closure::bind(function () use ($loader) {
293
+ $loader->prefixLengthsPsr4 = ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$prefixLengthsPsr4;
294
+ $loader->prefixDirsPsr4 = ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$prefixDirsPsr4;
295
+ $loader->classMap = ComposerStaticInit35a2606b24b2ec8354fcabef156c5304::$classMap;
296
 
297
  }, null, ClassLoader::class);
298
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'a6e7eb3ec997340b9cc87aedd2690b41232e9507',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
@@ -18,7 +18,7 @@
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => 'a6e7eb3ec997340b9cc87aedd2690b41232e9507',
22
  ),
23
  'collizo4sky/persist-admin-notices-dismissal' =>
24
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
10
  'name' => '__root__',
11
  ),
12
  'versions' =>
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => '5aec8232e0a7af90878aa0d9ee65903780d7f258',
22
  ),
23
  'collizo4sky/persist-admin-notices-dismissal' =>
24
  array (
wp-user-avatar.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ProfilePress
4
  * Plugin URI: https://profilepress.net
5
  * Description: The modern WordPress membership and user profile plugin.
6
- * Version: 3.1.1
7
  * Author: ProfilePress Team
8
  * Author URI: https://profilepress.net
9
  * Text Domain: wp-user-avatar
@@ -14,7 +14,7 @@
14
  defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
17
- define('PPRESS_VERSION_NUMBER', '3.1.1');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20
 
3
  * Plugin Name: ProfilePress
4
  * Plugin URI: https://profilepress.net
5
  * Description: The modern WordPress membership and user profile plugin.
6
+ * Version: 3.1.2
7
  * Author: ProfilePress Team
8
  * Author URI: https://profilepress.net
9
  * Text Domain: wp-user-avatar
14
  defined('ABSPATH') or die("No script kiddies please!");
15
 
16
  define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
17
+ define('PPRESS_VERSION_NUMBER', '3.1.2');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20