WP User Avatar - Version 3.2.7

Version Description

  • Fixed bug where redirect after login settings not getting cleared.
  • Fixed bug with wp_title user profile output.
  • Fixed bug where content restriction didn't work in some cases.
Download this release

Release Info

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

Code changes from version 3.2.6 to 3.2.7

changelog.txt CHANGED
@@ -1,4 +1,7 @@
1
  == Changelog ==
 
 
 
2
 
3
  = 3.2.6 =
4
  * [New content restriction shortcode](https://profilepress.net/article/wordpress-content-restriction-shortcodes/?utm_source=wporg_listing&utm_medium=readme&utm_campaign=changelog).
1
  == Changelog ==
2
+ * Fixed bug where redirect after login settings not getting cleared.
3
+ * Fixed bug with wp_title user profile output.
4
+ * Fixed bug where content restriction didn't work in some cases.
5
 
6
  = 3.2.6 =
7
  * [New content restriction shortcode](https://profilepress.net/article/wordpress-content-restriction-shortcodes/?utm_source=wporg_listing&utm_medium=readme&utm_campaign=changelog).
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.2.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2022-01-06 13:10:18+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -5538,9 +5538,9 @@ msgstr ""
5538
  msgid "ProfilePress"
5539
  msgstr ""
5540
 
5541
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.6) #-#-#-#-#
5542
  #. Plugin URI of the plugin/theme
5543
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.6) #-#-#-#-#
5544
  #. Author URI of the plugin/theme
5545
  msgid "https://profilepress.net"
5546
  msgstr ""
2
  # This file is distributed under the same license as the ProfilePress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ProfilePress 3.2.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2022-01-19 19:43:22+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
5538
  msgid "ProfilePress"
5539
  msgstr ""
5540
 
5541
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.7) #-#-#-#-#
5542
  #. Plugin URI of the plugin/theme
5543
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.7) #-#-#-#-#
5544
  #. Author URI of the plugin/theme
5545
  msgid "https://profilepress.net"
5546
  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: 7.1.0
7
  Tested up to: 5.9
8
- Stable tag: 3.2.6
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -118,6 +118,11 @@ No. You can create and manage your forms, user profiles and member directories w
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
121
  = 3.2.6 =
122
  * [New content restriction shortcode](https://profilepress.net/article/wordpress-content-restriction-shortcodes/?utm_source=wporg_listing&utm_medium=readme&utm_campaign=changelog).
123
  * Added content restriction to specific users.
5
  Requires at least: 4.7
6
  Requires PHP: 7.1.0
7
  Tested up to: 5.9
8
+ Stable tag: 3.2.7
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
118
 
119
  == Changelog ==
120
 
121
+ = 3.2.7 =
122
+ * Fixed bug where redirect after login settings not getting cleared.
123
+ * Fixed bug with wp_title user profile output.
124
+ * Fixed bug where content restriction didn't work in some cases.
125
+
126
  = 3.2.6 =
127
  * [New content restriction shortcode](https://profilepress.net/article/wordpress-content-restriction-shortcodes/?utm_source=wporg_listing&utm_medium=readme&utm_campaign=changelog).
128
  * Added content restriction to specific users.
src/Admin/SettingsPages/GeneralSettings.php CHANGED
@@ -109,7 +109,7 @@ class GeneralSettings extends AbstractSettingsPage
109
 
110
  $login_redirect_page_dropdown_args = [
111
  ['key' => 'current_page', 'label' => esc_html__('Currently viewed page', 'wp-user-avatar')],
112
- ['key' => '', 'label' => esc_html__('Previous/Referrer page (Pro feature)', 'wp-user-avatar'), 'disabled' => true],
113
  ['key' => 'dashboard', 'label' => esc_html__('WordPress Dashboard', 'wp-user-avatar')]
114
  ];
115
 
109
 
110
  $login_redirect_page_dropdown_args = [
111
  ['key' => 'current_page', 'label' => esc_html__('Currently viewed page', 'wp-user-avatar')],
112
+ ['key' => 'none', 'label' => esc_html__('Previous/Referrer page (Pro feature)', 'wp-user-avatar'), 'disabled' => true],
113
  ['key' => 'dashboard', 'label' => esc_html__('WordPress Dashboard', 'wp-user-avatar')]
114
  ];
115
 
src/Functions/GlobalFunctions.php CHANGED
@@ -237,7 +237,7 @@ function ppress_login_redirect()
237
  } else {
238
  $redirect = ppress_get_current_url_raw();
239
  }
240
- } elseif ( ! empty($login_redirect)) {
241
  $redirect = get_permalink($login_redirect);
242
  } else {
243
  $redirect = network_site_url('/wp-admin');
237
  } else {
238
  $redirect = ppress_get_current_url_raw();
239
  }
240
+ } elseif ( ! empty($login_redirect) && is_numeric($login_redirect)) {
241
  $redirect = get_permalink($login_redirect);
242
  } else {
243
  $redirect = network_site_url('/wp-admin');
src/ShortcodeParser/FrontendProfileTag.php CHANGED
@@ -162,7 +162,7 @@ class FrontendProfileTag
162
  global $post, $ppress_frontend_profile_user_obj;
163
 
164
  // if currently viewed page is the page with the front-end profile, rewrite the title accordingly.
165
- if (@$post->ID == ppress_get_setting('set_user_profile_shortcode')
166
  || has_shortcode('profilepress-user-profile', @$post->post_content)
167
  ) {
168
 
162
  global $post, $ppress_frontend_profile_user_obj;
163
 
164
  // if currently viewed page is the page with the front-end profile, rewrite the title accordingly.
165
+ if ((isset($post->ID) && !empty(ppress_get_setting('set_user_profile_shortcode')) && $post->ID == ppress_get_setting('set_user_profile_shortcode'))
166
  || has_shortcode('profilepress-user-profile', @$post->post_content)
167
  ) {
168
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitbee77dceba8d7209f0b1c122945e98ec::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit55c70b7a6700dbaebb732084d9197424::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitbee77dceba8d7209f0b1c122945e98ec
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitbee77dceba8d7209f0b1c122945e98ec
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitbee77dceba8d7209f0b1c122945e98ec', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitbee77dceba8d7209f0b1c122945e98ec', '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\ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitbee77dceba8d7209f0b1c122945e98ec
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequirebee77dceba8d7209f0b1c122945e98ec($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequirebee77dceba8d7209f0b1c122945e98ec($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 ComposerAutoloaderInit55c70b7a6700dbaebb732084d9197424
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit55c70b7a6700dbaebb732084d9197424', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit55c70b7a6700dbaebb732084d9197424', '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\ComposerStaticInit55c70b7a6700dbaebb732084d9197424::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\ComposerStaticInit55c70b7a6700dbaebb732084d9197424::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire55c70b7a6700dbaebb732084d9197424($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire55c70b7a6700dbaebb732084d9197424($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 ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -288,9 +288,9 @@ class ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec
288
  public static function getInitializer(ClassLoader $loader)
289
  {
290
  return \Closure::bind(function () use ($loader) {
291
- $loader->prefixLengthsPsr4 = ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec::$prefixLengthsPsr4;
292
- $loader->prefixDirsPsr4 = ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec::$prefixDirsPsr4;
293
- $loader->classMap = ComposerStaticInitbee77dceba8d7209f0b1c122945e98ec::$classMap;
294
 
295
  }, null, ClassLoader::class);
296
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit55c70b7a6700dbaebb732084d9197424
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
288
  public static function getInitializer(ClassLoader $loader)
289
  {
290
  return \Closure::bind(function () use ($loader) {
291
+ $loader->prefixLengthsPsr4 = ComposerStaticInit55c70b7a6700dbaebb732084d9197424::$prefixLengthsPsr4;
292
+ $loader->prefixDirsPsr4 = ComposerStaticInit55c70b7a6700dbaebb732084d9197424::$prefixDirsPsr4;
293
+ $loader->classMap = ComposerStaticInit55c70b7a6700dbaebb732084d9197424::$classMap;
294
 
295
  }, null, ClassLoader::class);
296
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '43161305f87d49744303378f9b2d4fa96e71a4cf',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '43161305f87d49744303378f9b2d4fa96e71a4cf',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '28dd15188c9e3dc79a412f167984588eea7df61b',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '28dd15188c9e3dc79a412f167984588eea7df61b',
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.2.6
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.2.6');
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.2.7
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.2.7');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20