WP User Avatar - Version 3.1.15

Version Description

  • Fixed bug with with My Account page not correctly rendering.
Download this release

Release Info

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

Code changes from version 3.1.14 to 3.1.15

changelog.txt CHANGED
@@ -1,4 +1,9 @@
1
- = 3.1.14 =
 
 
 
 
 
2
  * Minimum PHP version now 5.6.0.
3
 
4
  = 3.1.13 =
1
+ == Changelog ==
2
+
3
+ = 3.1.15 =
4
+ * Fixed bug with with My Account page not correctly rendering.
5
+
6
+ = 3.1.14 =
7
  * Minimum PHP version now 5.6.0.
8
 
9
  = 3.1.13 =
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.14\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
- "POT-Creation-Date: 2021-07-23 16:31:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -46,7 +46,7 @@ msgstr ""
46
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:78
47
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:131
48
  #: src/Classes/ImageUploader.php:49
49
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:503
50
  msgid "Profile Picture"
51
  msgstr ""
52
 
@@ -1629,7 +1629,7 @@ msgstr ""
1629
  #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:88
1630
  msgid ""
1631
  "Upgrade to Premium to unlock extensions and other great features. As a "
1632
- "valued ProfilePress Lite user, you will %1$sreceive 20%3$s off%2$s your "
1633
  "purchase, automatically applied at checkout!"
1634
  msgstr ""
1635
 
@@ -4547,7 +4547,7 @@ msgstr ""
4547
  msgid "Email Notifications"
4548
  msgstr ""
4549
 
4550
- #: src/ShortcodeParser/MyAccount/MyAccountTag.php:502
4551
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:87
4552
  msgid "Cover Image (min. width: 1000px)"
4553
  msgstr ""
@@ -5421,9 +5421,9 @@ msgstr ""
5421
  msgid "ProfilePress"
5422
  msgstr ""
5423
 
5424
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.14) #-#-#-#-#
5425
  #. Plugin URI of the plugin/theme
5426
- #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.14) #-#-#-#-#
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.15\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
7
+ "POT-Creation-Date: 2021-07-28 17:32:53+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
46
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:78
47
  #: deprecated/wp-user-avatar/includes/wpua-functions.php:131
48
  #: src/Classes/ImageUploader.php:49
49
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:496
50
  msgid "Profile Picture"
51
  msgstr ""
52
 
1629
  #: src/Admin/SettingsPages/ExtensionsSettingsPage.php:88
1630
  msgid ""
1631
  "Upgrade to Premium to unlock extensions and other great features. As a "
1632
+ "valued ProfilePress Lite user, you will %1$sreceive 10%3$s off%2$s your "
1633
  "purchase, automatically applied at checkout!"
1634
  msgstr ""
1635
 
4547
  msgid "Email Notifications"
4548
  msgstr ""
4549
 
4550
+ #: src/ShortcodeParser/MyAccount/MyAccountTag.php:495
4551
  #: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:87
4552
  msgid "Cover Image (min. width: 1000px)"
4553
  msgstr ""
5421
  msgid "ProfilePress"
5422
  msgstr ""
5423
 
5424
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.15) #-#-#-#-#
5425
  #. Plugin URI of the plugin/theme
5426
+ #. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.15) #-#-#-#-#
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.14
9
  License: GPLv2 or later
10
 
11
  Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
@@ -117,17 +117,10 @@ No. You can create and manage your forms, user profiles and member directories w
117
 
118
  == Changelog ==
119
 
 
 
 
120
  = 3.1.14 =
121
  * Minimum PHP version is now 5.6.0.
122
 
123
- = 3.1.13 =
124
- * Added checks to ensure pages exist before setting/redirecting to them.
125
- * Fixed user profile responsiveness.
126
- * Fixes PHP Fatal error: Uncaught Error: Class "DOMDocument" not found.
127
-
128
- = 3.1.12 =
129
- * Fixed issue where logout redirect wasn’t working.
130
- * Fixed issue where line breaks weren't maintained.
131
- * Fixed bug where redirect after login was to an invalid url.
132
-
133
  See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6.0
7
  Tested up to: 5.8
8
+ Stable tag: 3.1.15
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.15 =
121
+ * Fixed bug with with My Account page not correctly rendering.
122
+
123
  = 3.1.14 =
124
  * Minimum PHP version is now 5.6.0.
125
 
 
 
 
 
 
 
 
 
 
 
126
  See the [changelog file](https://plugins.svn.wordpress.org/wp-user-avatar/trunk/changelog.txt) for full change log information.
src/Admin/SettingsPages/ExtensionsSettingsPage.php CHANGED
@@ -85,12 +85,12 @@ class ExtensionsSettingsPage extends AbstractSettingsPage
85
  <div class="notice-content">
86
  <span>
87
  <?= sprintf(
88
- esc_html__('Upgrade to Premium to unlock extensions and other great features. As a valued ProfilePress Lite user, you will %1$sreceive 20%3$s off%2$s your purchase, automatically applied at checkout!', 'wp-user-avatar'),
89
  '<span class="ppress-extensions-upsell-highlight">', '</span>', '%'
90
  ) ?>
91
  </span>
92
  <div class="ppress-extensions-upsell-button">
93
- <a target="_blank" href="https://profilepress.net/pricing/?discount=20PPOFF&utm_source=liteplugin&utm_medium=extension-page&utm_campaign=notice&utm_content=upsell" class="button-primary">
94
  <?= esc_html__('Upgrade Now', 'wp-user-avatar') ?>
95
  </a>
96
  </div>
@@ -104,7 +104,7 @@ class ExtensionsSettingsPage extends AbstractSettingsPage
104
  $extension_class = ppress_var(EM::class_map(), $id);
105
  $upgrade_url = "https://profilepress.net/pricing/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=extension-upgrade&utm_content=$id";
106
  if ( ! EM::is_premium()) {
107
- $upgrade_url = add_query_arg('discount', '20PPOFF', $upgrade_url);
108
  }
109
 
110
  $upgrade_label = ! EM::is_premium() ? esc_html__('Upgrade to Premium', 'wp-user-avatar') : esc_html__('Upgrade Plan', 'wp-user-avatar');
85
  <div class="notice-content">
86
  <span>
87
  <?= sprintf(
88
+ esc_html__('Upgrade to Premium to unlock extensions and other great features. As a valued ProfilePress Lite user, you will %1$sreceive 10%3$s off%2$s your purchase, automatically applied at checkout!', 'wp-user-avatar'),
89
  '<span class="ppress-extensions-upsell-highlight">', '</span>', '%'
90
  ) ?>
91
  </span>
92
  <div class="ppress-extensions-upsell-button">
93
+ <a target="_blank" href="https://profilepress.net/pricing/?discount=10PPOFF&utm_source=liteplugin&utm_medium=extension-page&utm_campaign=notice&utm_content=upsell" class="button-primary">
94
  <?= esc_html__('Upgrade Now', 'wp-user-avatar') ?>
95
  </a>
96
  </div>
104
  $extension_class = ppress_var(EM::class_map(), $id);
105
  $upgrade_url = "https://profilepress.net/pricing/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=extension-upgrade&utm_content=$id";
106
  if ( ! EM::is_premium()) {
107
+ $upgrade_url = add_query_arg('discount', '10PPOFF', $upgrade_url);
108
  }
109
 
110
  $upgrade_label = ! EM::is_premium() ? esc_html__('Upgrade to Premium', 'wp-user-avatar') : esc_html__('Upgrade Plan', 'wp-user-avatar');
src/ShortcodeParser/MyAccount/MyAccountTag.php CHANGED
@@ -106,20 +106,12 @@ class MyAccountTag extends FormProcessor
106
 
107
  public function email_notification_callback()
108
  {
109
- ob_start();
110
-
111
  require apply_filters('ppress_my_account_email_notification_template', dirname(__FILE__) . '/email-notifications.tmpl.php');
112
-
113
- return ob_get_clean();
114
  }
115
 
116
  public function change_password_callback()
117
  {
118
- ob_start();
119
-
120
  require apply_filters('ppress_my_account_change_password_template', dirname(__FILE__) . '/change-password.tmpl.php');
121
-
122
- return ob_get_clean();
123
  }
124
 
125
  public function display_name_select_dropdown()
@@ -164,11 +156,7 @@ class MyAccountTag extends FormProcessor
164
 
165
  public function edit_profile_callback()
166
  {
167
- ob_start();
168
-
169
  require apply_filters('ppress_my_account_edit_profile_template', dirname(__FILE__) . '/edit-profile.tmpl.php');
170
-
171
- return ob_get_clean();
172
  }
173
 
174
  public function page_endpoint_title($title)
@@ -457,6 +445,8 @@ class MyAccountTag extends FormProcessor
457
  <div class="profilepress-myaccount-content">
458
  <?php
459
 
 
 
460
  if ( ! empty($wp->query_vars)) {
461
  foreach ($wp->query_vars as $key => $value) {
462
  // Ignore pagename param.
@@ -467,13 +457,16 @@ class MyAccountTag extends FormProcessor
467
  $callback = self::get_tab_callback($key);
468
 
469
  if (is_callable($callback)) {
470
-
471
- return call_user_func($callback, $key);
 
472
  }
473
  }
474
  }
475
 
476
- require apply_filters('ppress_my_account_dashboard_template', dirname(__FILE__) . '/dashboard.tmpl.php');
 
 
477
  ?>
478
  </div>
479
  </div>
106
 
107
  public function email_notification_callback()
108
  {
 
 
109
  require apply_filters('ppress_my_account_email_notification_template', dirname(__FILE__) . '/email-notifications.tmpl.php');
 
 
110
  }
111
 
112
  public function change_password_callback()
113
  {
 
 
114
  require apply_filters('ppress_my_account_change_password_template', dirname(__FILE__) . '/change-password.tmpl.php');
 
 
115
  }
116
 
117
  public function display_name_select_dropdown()
156
 
157
  public function edit_profile_callback()
158
  {
 
 
159
  require apply_filters('ppress_my_account_edit_profile_template', dirname(__FILE__) . '/edit-profile.tmpl.php');
 
 
160
  }
161
 
162
  public function page_endpoint_title($title)
445
  <div class="profilepress-myaccount-content">
446
  <?php
447
 
448
+ $flag = false;
449
+
450
  if ( ! empty($wp->query_vars)) {
451
  foreach ($wp->query_vars as $key => $value) {
452
  // Ignore pagename param.
457
  $callback = self::get_tab_callback($key);
458
 
459
  if (is_callable($callback)) {
460
+ $flag = true;
461
+ call_user_func($callback, $key);
462
+ break;
463
  }
464
  }
465
  }
466
 
467
+ if ( ! $flag) {
468
+ require apply_filters('ppress_my_account_dashboard_template', dirname(__FILE__) . '/dashboard.tmpl.php');
469
+ }
470
  ?>
471
  </div>
472
  </div>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInite760b0ce87d8db13feabd2df26c92bfb::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6a17c38b960b12c3ae02921198491b99::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInite760b0ce87d8db13feabd2df26c92bfb
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInite760b0ce87d8db13feabd2df26c92bfb
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInite760b0ce87d8db13feabd2df26c92bfb', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInite760b0ce87d8db13feabd2df26c92bfb', '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\ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInite760b0ce87d8db13feabd2df26c92bfb
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequiree760b0ce87d8db13feabd2df26c92bfb($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequiree760b0ce87d8db13feabd2df26c92bfb($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 ComposerAutoloaderInit6a17c38b960b12c3ae02921198491b99
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit6a17c38b960b12c3ae02921198491b99', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit6a17c38b960b12c3ae02921198491b99', '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\ComposerStaticInit6a17c38b960b12c3ae02921198491b99::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\ComposerStaticInit6a17c38b960b12c3ae02921198491b99::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire6a17c38b960b12c3ae02921198491b99($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire6a17c38b960b12c3ae02921198491b99($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 ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb
8
  {
9
  public static $files = array (
10
  'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
@@ -286,9 +286,9 @@ class ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb
286
  public static function getInitializer(ClassLoader $loader)
287
  {
288
  return \Closure::bind(function () use ($loader) {
289
- $loader->prefixLengthsPsr4 = ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb::$prefixLengthsPsr4;
290
- $loader->prefixDirsPsr4 = ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb::$prefixDirsPsr4;
291
- $loader->classMap = ComposerStaticInite760b0ce87d8db13feabd2df26c92bfb::$classMap;
292
 
293
  }, null, ClassLoader::class);
294
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6a17c38b960b12c3ae02921198491b99
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 = ComposerStaticInit6a17c38b960b12c3ae02921198491b99::$prefixLengthsPsr4;
290
+ $loader->prefixDirsPsr4 = ComposerStaticInit6a17c38b960b12c3ae02921198491b99::$prefixDirsPsr4;
291
+ $loader->classMap = ComposerStaticInit6a17c38b960b12c3ae02921198491b99::$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' => 'fa8ad89d612ec6c2c102321f1b1958952ba2be96',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
@@ -16,7 +16,7 @@
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => 'fa8ad89d612ec6c2c102321f1b1958952ba2be96',
20
  'dev_requirement' => false,
21
  ),
22
  'collizo4sky/persist-admin-notices-dismissal' => array(
5
  'type' => 'library',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '91dce99473174f4de52da65e14dc30a378bbab6a',
9
  'name' => '__root__',
10
  'dev' => false,
11
  ),
16
  'type' => 'library',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '91dce99473174f4de52da65e14dc30a378bbab6a',
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.14
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.14');
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.15
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.15');
18
 
19
  require __DIR__ . '/vendor/autoload.php';
20