Version Description
- Fix: BuddyPress 6.0 compatibility fix.
Download this release
Release Info
Developer | nextendweb |
Plugin | Nextend Social Login and Register (Facebook, Google, Twitter) |
Version | 3.0.24 |
Comparing to | |
See all releases |
Code changes from version 3.0.23 to 3.0.24
- includes/avatar.php +22 -16
- nextend-facebook-connect.php +1 -1
- nextend-social-login.php +1 -1
- readme.txt +4 -1
includes/avatar.php
CHANGED
@@ -152,26 +152,32 @@ class NextendSocialLoginAvatar {
|
|
152 |
$avatarTempPath = download_url($avatarUrl);
|
153 |
|
154 |
if (!is_wp_error($avatarTempPath)) {
|
155 |
-
if (!function_exists('
|
156 |
-
|
|
|
|
|
|
|
157 |
}
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
}
|
169 |
-
|
170 |
-
copy($avatarTempPath, $pathInfo['path'] . '/' . 'avatar-bpfull.' . $extension);
|
171 |
-
rename($avatarTempPath, $pathInfo['path'] . '/' . 'avatar-bpthumb.' . $extension);
|
172 |
-
}
|
173 |
}
|
174 |
-
closedir($av_dir);
|
175 |
}
|
176 |
}
|
177 |
}
|
152 |
$avatarTempPath = download_url($avatarUrl);
|
153 |
|
154 |
if (!is_wp_error($avatarTempPath)) {
|
155 |
+
if (!function_exists('bp_members_avatar_upload_dir')) {
|
156 |
+
$bpMembersFunctionsPath = buddypress()->plugin_dir . '/bp-members/bp-members-functions.php';
|
157 |
+
if (file_exists($bpMembersFunctionsPath)) {
|
158 |
+
require_once($bpMembersFunctionsPath);
|
159 |
+
}
|
160 |
}
|
161 |
+
|
162 |
+
if (function_exists('bp_members_avatar_upload_dir')) {
|
163 |
+
$pathInfo = bp_members_avatar_upload_dir('avatars', $user_id);
|
164 |
+
|
165 |
+
if (wp_mkdir_p($pathInfo['path'])) {
|
166 |
+
if ($av_dir = opendir($pathInfo['path'] . '/')) {
|
167 |
+
$hasAvatar = false;
|
168 |
+
while (false !== ($avatar_file = readdir($av_dir))) {
|
169 |
+
if ((preg_match("/-bpfull/", $avatar_file) || preg_match("/-bpthumb/", $avatar_file))) {
|
170 |
+
$hasAvatar = true;
|
171 |
+
break;
|
172 |
+
}
|
173 |
+
}
|
174 |
+
if (!$hasAvatar) {
|
175 |
+
copy($avatarTempPath, $pathInfo['path'] . '/' . 'avatar-bpfull.' . $extension);
|
176 |
+
rename($avatarTempPath, $pathInfo['path'] . '/' . 'avatar-bpthumb.' . $extension);
|
177 |
}
|
178 |
}
|
179 |
+
closedir($av_dir);
|
|
|
|
|
|
|
180 |
}
|
|
|
181 |
}
|
182 |
}
|
183 |
}
|
nextend-facebook-connect.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Nextend Social Login
|
4 |
Plugin URI: https://nextendweb.com/
|
5 |
Description: Nextend Social Login displays social login buttons for Facebook, Google and Twitter.
|
6 |
-
Version: 3.0.
|
7 |
Author: Nextendweb
|
8 |
License: GPL2
|
9 |
Text Domain: nextend-facebook-connect
|
3 |
Plugin Name: Nextend Social Login
|
4 |
Plugin URI: https://nextendweb.com/
|
5 |
Description: Nextend Social Login displays social login buttons for Facebook, Google and Twitter.
|
6 |
+
Version: 3.0.24
|
7 |
Author: Nextendweb
|
8 |
License: GPL2
|
9 |
Text Domain: nextend-facebook-connect
|
nextend-social-login.php
CHANGED
@@ -19,7 +19,7 @@ require_once(NSL_PATH . '/compat.php');
|
|
19 |
|
20 |
class NextendSocialLogin {
|
21 |
|
22 |
-
public static $version = '3.0.
|
23 |
|
24 |
public static $nslPROMinVersion = '3.0.23';
|
25 |
|
19 |
|
20 |
class NextendSocialLogin {
|
21 |
|
22 |
+
public static $version = '3.0.24';
|
23 |
|
24 |
public static $nslPROMinVersion = '3.0.23';
|
25 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social login, facebook, google, twitter, linkedin, register, login, social
|
|
4 |
Donate link: https://www.facebook.com/nextendweb
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4.1
|
7 |
-
Stable tag: 3.0.
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -118,6 +118,9 @@ Using the Pro Addon you can set where the login buttons should appear on the Reg
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
121 |
= 3.0.23 =
|
122 |
* Fix: PHP error when BuddyPress – Activity is disabled.
|
123 |
* Fix: [Support login restrictions](https://nextendweb.com/nextend-social-login-docs/global-settings/) – delete persistent data when the registration was prevented by a third party plugin
|
4 |
Donate link: https://www.facebook.com/nextendweb
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4.1
|
7 |
+
Stable tag: 3.0.24
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 3.0.24 =
|
122 |
+
* Fix: BuddyPress 6.0 compatibility fix.
|
123 |
+
|
124 |
= 3.0.23 =
|
125 |
* Fix: PHP error when BuddyPress – Activity is disabled.
|
126 |
* Fix: [Support login restrictions](https://nextendweb.com/nextend-social-login-docs/global-settings/) – delete persistent data when the registration was prevented by a third party plugin
|