WP User Avatar - Version 3.1.17

Version Description

  • Added wp_login trigger after login.
  • Fixed issue where deleted login page causes wp-admin to 404.
  • Fixed: Undefined property: stdClass::$url.
Download this release

Release Info

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

Code changes from version 3.1.16 to 3.1.17

changelog.txt CHANGED
@@ -1,4 +1,9 @@
1
- == Changelog ==
 
 
 
 
 
2
 
3
  = 3.1.16 =
4
  * Added compatibility with a lot of 2fa plugins.
1
+ == Changelog ==
2
+
3
+ = 3.1.17 =
4
+ * Added wp_login trigger after login.
5
+ * Fixed issue where deleted login page causes wp-admin to 404.
6
+ * Fixed: Undefined property: stdClass::$url.
7
 
8
  = 3.1.16 =
9
  * Added compatibility with a lot of 2fa plugins.
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.16\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2021-08-06 09:29:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -428,27 +428,27 @@ msgstr ""
428
  msgid "Help / Support"
429
  msgstr ""
430
 
431
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:89
432
  msgid "Visit the %s for guidance."
433
  msgstr ""
434
 
435
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:90
436
  msgid "Documentation"
437
  msgstr ""
438
 
439
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:97
440
  msgid "For support, %sreach out to us%s."
441
  msgstr ""
442
 
443
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:109
444
  msgid "Use the coupon code %s10PERCENTOFF%s to save %s off MailOptin."
445
  msgstr ""
446
 
447
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:127
448
  msgid "Available placeholders for subject and message body"
449
  msgstr ""
450
 
451
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:147
452
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
453
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
454
  #: src/Admin/SettingsPages/GeneralSettings.php:236
@@ -458,7 +458,7 @@ msgstr ""
458
  msgid "Select..."
459
  msgstr ""
460
 
461
- #: src/Admin/SettingsPages/AbstractSettingsPage.php:171
462
  msgid "Custom URL Here"
463
  msgstr ""
464
 
@@ -5421,9 +5421,9 @@ msgstr ""
5421
  msgid "ProfilePress"
5422
  msgstr ""
5423
 
5424
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.16) #-#-#-#-#
5425
  #. Plugin URI of the plugin/theme
5426
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.16) #-#-#-#-#
5427
  #. Author URI of the plugin/theme
5428
  msgid "https://profilepress.net"
5429
  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.17\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2021-08-22 11:41:06+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
428
  msgid "Help / Support"
429
  msgstr ""
430
 
431
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:93
432
  msgid "Visit the %s for guidance."
433
  msgstr ""
434
 
435
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:94
436
  msgid "Documentation"
437
  msgstr ""
438
 
439
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:101
440
  msgid "For support, %sreach out to us%s."
441
  msgstr ""
442
 
443
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:113
444
  msgid "Use the coupon code %s10PERCENTOFF%s to save %s off MailOptin."
445
  msgstr ""
446
 
447
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:131
448
  msgid "Available placeholders for subject and message body"
449
  msgstr ""
450
 
451
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:151
452
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
453
  #: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
454
  #: src/Admin/SettingsPages/GeneralSettings.php:236
458
  msgid "Select..."
459
  msgstr ""
460
 
461
+ #: src/Admin/SettingsPages/AbstractSettingsPage.php:175
462
  msgid "Custom URL Here"
463
  msgstr ""
464
 
5421
  msgid "ProfilePress"
5422
  msgstr ""
5423
 
5424
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.17) #-#-#-#-#
5425
  #. Plugin URI of the plugin/theme
5426
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.17) #-#-#-#-#
5427
  #. Author URI of the plugin/theme
5428
  msgid "https://profilepress.net"
5429
  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.0
7
  Tested up to: 5.8
8
- Stable tag: 3.1.16
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -117,6 +117,11 @@ No. You can create and manage your forms, user profiles and member directories w
117
 
118
  == Changelog ==
119
 
 
 
 
 
 
120
  = 3.1.16 =
121
  * Added compatibility with a lot of 2fa plugins.
122
 
5
  Requires at least: 4.7
6
  Requires PHP: 5.6.0
7
  Tested up to: 5.8
8
+ Stable tag: 3.1.17
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
117
 
118
  == Changelog ==
119
 
120
+ = 3.1.17 =
121
+ * Added wp_login trigger after login.
122
+ * Fixed issue where deleted login page causes wp-admin to 404.
123
+ * Fixed: Undefined property: stdClass::$url.
124
+
125
  = 3.1.16 =
126
  * Added compatibility with a lot of 2fa plugins.
127
 
src/Admin/SettingsPages/AbstractSettingsPage.php CHANGED
@@ -79,6 +79,10 @@ abstract class AbstractSettingsPage
79
  ]
80
  ];
81
 
 
 
 
 
82
  return $sidebar_args;
83
  }
84
 
79
  ]
80
  ];
81
 
82
+ if (defined('MAILOPTIN_DETACH_LIBSODIUM')) {
83
+ unset($sidebar_args[1]);
84
+ }
85
+
86
  return $sidebar_args;
87
  }
88
 
src/Classes/Autologin.php CHANGED
@@ -16,7 +16,7 @@ class Autologin
16
  * @param string $login_id
17
  * @param string $redirect
18
  *
19
- * @return mixed
20
  */
21
  public static function initialize($user_id, $login_id = '', $redirect = '')
22
  {
@@ -40,6 +40,10 @@ class Autologin
40
 
41
  wp_set_auth_cookie($user_id, true, $secure_cookie);
42
  wp_set_current_user($user_id);
 
 
 
 
43
  }
44
 
45
  do_action('ppress_before_auto_login_redirect', $login_id, $user_id);
16
  * @param string $login_id
17
  * @param string $redirect
18
  *
19
+ * @return void|mixed
20
  */
21
  public static function initialize($user_id, $login_id = '', $redirect = '')
22
  {
40
 
41
  wp_set_auth_cookie($user_id, true, $secure_cookie);
42
  wp_set_current_user($user_id);
43
+
44
+ $user = get_user_by('id', $user_id);
45
+
46
+ do_action('wp_login', $user->user_login, $user);
47
  }
48
 
49
  do_action('ppress_before_auto_login_redirect', $login_id, $user_id);
src/Classes/ModifyRedirectDefaultLinks.php CHANGED
@@ -80,7 +80,7 @@ class ModifyRedirectDefaultLinks
80
  {
81
  $page_id = ppress_get_setting('set_lost_password_url');
82
 
83
- if ( ! empty($page_id) && get_post_status($page_id)) {
84
  $val = get_permalink($page_id);
85
  }
86
 
@@ -96,7 +96,7 @@ class ModifyRedirectDefaultLinks
96
 
97
  $page_id = ppress_get_setting('set_lost_password_url');
98
 
99
- if (empty($page_id) || ! get_post_status($page_id)) return;
100
 
101
  wp_safe_redirect(get_permalink(absint($page_id)));
102
  exit;
@@ -116,7 +116,7 @@ class ModifyRedirectDefaultLinks
116
  if ( ! $this->is_third_party_2fa_active()) {
117
  $login_page_id = ppress_get_setting('set_login_url');
118
 
119
- if ( ! empty($login_page_id) && get_post_status($login_page_id)) {
120
 
121
  $url = get_permalink($login_page_id);
122
 
@@ -146,7 +146,7 @@ class ModifyRedirectDefaultLinks
146
 
147
  $login_page_id = ppress_get_setting('set_login_url');
148
 
149
- if (empty($login_page_id) || ! get_post_status($login_page_id)) return;
150
 
151
  $login_url = ppress_login_url();
152
 
@@ -175,7 +175,7 @@ class ModifyRedirectDefaultLinks
175
  {
176
  $page_id = ppress_get_setting('set_registration_url');
177
 
178
- if ( ! empty($page_id) && get_post_status($page_id)) {
179
  $val = get_permalink($page_id);
180
  }
181
 
@@ -191,7 +191,7 @@ class ModifyRedirectDefaultLinks
191
 
192
  $page_id = ppress_get_setting('set_registration_url');
193
 
194
- if (empty($page_id) || ! get_post_status($page_id)) return;
195
 
196
  $reg_url = ppress_registration_url();
197
 
80
  {
81
  $page_id = ppress_get_setting('set_lost_password_url');
82
 
83
+ if ( ! empty($page_id) && 'publish' == get_post_status($page_id)) {
84
  $val = get_permalink($page_id);
85
  }
86
 
96
 
97
  $page_id = ppress_get_setting('set_lost_password_url');
98
 
99
+ if (empty($page_id) || 'publish' != get_post_status($page_id)) return;
100
 
101
  wp_safe_redirect(get_permalink(absint($page_id)));
102
  exit;
116
  if ( ! $this->is_third_party_2fa_active()) {
117
  $login_page_id = ppress_get_setting('set_login_url');
118
 
119
+ if ( ! empty($login_page_id) && 'publish' == get_post_status($login_page_id)) {
120
 
121
  $url = get_permalink($login_page_id);
122
 
146
 
147
  $login_page_id = ppress_get_setting('set_login_url');
148
 
149
+ if (empty($login_page_id) || ('publish' != get_post_status($login_page_id))) return;
150
 
151
  $login_url = ppress_login_url();
152
 
175
  {
176
  $page_id = ppress_get_setting('set_registration_url');
177
 
178
+ if ( ! empty($page_id) && 'publish' == get_post_status($page_id)) {
179
  $val = get_permalink($page_id);
180
  }
181
 
191
 
192
  $page_id = ppress_get_setting('set_registration_url');
193
 
194
+ if (empty($page_id) || 'publish' != get_post_status($page_id)) return;
195
 
196
  $reg_url = ppress_registration_url();
197
 
src/NavigationMenuLinks/Frontend.php CHANGED
@@ -120,7 +120,7 @@ class Frontend
120
  // in self::setup_nav_menu_item we made the title and url of some nav items the same.
121
  // an item that fall in this category get removed here.
122
  foreach ($sorted_menu_items as $k => $item) {
123
- if (strlen($item->title) && ($item->title == $item->url)) {
124
  unset($sorted_menu_items[$k]);
125
  }
126
  }
120
  // in self::setup_nav_menu_item we made the title and url of some nav items the same.
121
  // an item that fall in this category get removed here.
122
  foreach ($sorted_menu_items as $k => $item) {
123
+ if (isset($item->title, $item->url) && strlen($item->title) && ($item->title == $item->url)) {
124
  unset($sorted_menu_items[$k]);
125
  }
126
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit7bb96cf41eb2ea22512ab8c4355a0022::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit8d14ecd6b8e7a572e9e1dfadf289bfdc::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit7bb96cf41eb2ea22512ab8c4355a0022
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit7bb96cf41eb2ea22512ab8c4355a0022
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit7bb96cf41eb2ea22512ab8c4355a0022', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit7bb96cf41eb2ea22512ab8c4355a0022', '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\ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit7bb96cf41eb2ea22512ab8c4355a0022
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire7bb96cf41eb2ea22512ab8c4355a0022($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire7bb96cf41eb2ea22512ab8c4355a0022($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 ComposerAutoloaderInit8d14ecd6b8e7a572e9e1dfadf289bfdc
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit8d14ecd6b8e7a572e9e1dfadf289bfdc', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit8d14ecd6b8e7a572e9e1dfadf289bfdc', '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\ComposerStaticInit8d14ecd6b8e7a572e9e1dfadf289bfdc::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\ComposerStaticInit8d14ecd6b8e7a572e9e1dfadf289bfdc::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire8d14ecd6b8e7a572e9e1dfadf289bfdc($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire8d14ecd6b8e7a572e9e1dfadf289bfdc($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 ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -286,9 +286,9 @@ class ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022
286
  public static function getInitializer(ClassLoader $loader)
287
  {
288
  return \Closure::bind(function () use ($loader) {
289
- $loader->prefixLengthsPsr4 = ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022::$prefixLengthsPsr4;
290
- $loader->prefixDirsPsr4 = ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022::$prefixDirsPsr4;
291
- $loader->classMap = ComposerStaticInit7bb96cf41eb2ea22512ab8c4355a0022::$classMap;
292
 
293
  }, null, ClassLoader::class);
294
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8d14ecd6b8e7a572e9e1dfadf289bfdc
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
286
  public static function getInitializer(ClassLoader $loader)
287
  {
288
  return \Closure::bind(function () use ($loader) {
289
+ $loader->prefixLengthsPsr4 = ComposerStaticInit8d14ecd6b8e7a572e9e1dfadf289bfdc::$prefixLengthsPsr4;
290
+ $loader->prefixDirsPsr4 = ComposerStaticInit8d14ecd6b8e7a572e9e1dfadf289bfdc::$prefixDirsPsr4;
291
+ $loader->classMap = ComposerStaticInit8d14ecd6b8e7a572e9e1dfadf289bfdc::$classMap;
292
 
293
  }, null, ClassLoader::class);
294
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '872792540fa52d749746c08b7ccb9610f160881e',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '872792540fa52d749746c08b7ccb9610f160881e',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '6af98675d01aa93baa3cbf17d70245e1b2af4f42',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '6af98675d01aa93baa3cbf17d70245e1b2af4f42',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => 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.16
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.16');
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.17
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.17');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20