Nextend Social Login and Register (Facebook, Google, Twitter) - Version 3.0.23

Version Description

  • Fix: PHP error when BuddyPress Activity is disabled.
  • Fix: Support login restrictions delete persistent data when the registration was prevented by a third party plugin
  • Fix: Twitter 4848 avatars can be stored again

  • PRO: Fix: Longer Apple JWT token expiry.

  • PRO: Improvement: compatibility with the forms generated by the plugin Checkout for WooCommerce

  • PRO: Improvement: Apple provider button skins to comply with Human Interface Guidelines

Download this release

Release Info

Developer nextendweb
Plugin Icon 128x128 Nextend Social Login and Register (Facebook, Google, Twitter)
Version 3.0.23
Comparing to
See all releases

Code changes from version 3.0.22 to 3.0.23

admin/templates/settings/woocommerce.php CHANGED
@@ -208,6 +208,59 @@ NextendSocialLoginAdmin::showProBox();
208
  </td>
209
  </tr>
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  <tr>
212
  <th scope="row"><?php _e('Account details', 'nextend-facebook-connect'); ?></th>
213
  <td>
208
  </td>
209
  </tr>
210
 
211
+ <?php if (class_exists('Objectiv\Plugins\Checkout\Main', false)) { ?>
212
+ <!-- Integration for "Checkout for WooCommerce" plugin: -->
213
+ <tr>
214
+ <th scope="row"><?php _e('Checkout for WooCommerce', 'nextend-facebook-connect'); ?></th>
215
+ <td>
216
+ <fieldset>
217
+ <label><input type="radio" name="woocommerce_cfw"
218
+ value="" <?php if ($settings->get('woocommerce_cfw') == '') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
219
+ <span><?php _e('No Connect button in "Checkout for WooCommerce" form', 'nextend-facebook-connect'); ?></span></label><br>
220
+ <label><input type="radio" name="woocommerce_cfw"
221
+ value="show" <?php if ($settings->get('woocommerce_cfw') == 'show') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
222
+ <span><?php _e('Connect button on', 'nextend-facebook-connect'); ?></span>
223
+ <code><?php _e('Action:'); ?>
224
+ cfw_checkout_after_login</code></label><br>
225
+ </fieldset>
226
+ </td>
227
+ </tr>
228
+
229
+ <tr>
230
+ <th scope="row"><?php _e('Checkout for WooCommerce layout', 'nextend-facebook-connect'); ?></th>
231
+ <td>
232
+ <fieldset>
233
+ <label>
234
+ <input type="radio" name="woocommerce_cfw_layout"
235
+ value="below" <?php if ($settings->get('woocommerce_cfw_layout') == 'below') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
236
+ <span><?php _e('Below', 'nextend-facebook-connect'); ?></span><br/>
237
+ <img src="<?php echo plugins_url('images/layouts/below.png', NSL_ADMIN_PATH) ?>"/>
238
+ </label>
239
+ <label>
240
+ <input type="radio" name="woocommerce_cfw_layout"
241
+ value="below-separator" <?php if ($settings->get('woocommerce_cfw_layout') == 'below-separator') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
242
+ <span><?php _e('Below with separator', 'nextend-facebook-connect'); ?></span><br/>
243
+ <img src="<?php echo plugins_url('images/layouts/below-separator.png', NSL_ADMIN_PATH) ?>"/>
244
+ </label>
245
+ <label>
246
+ <input type="radio" name="woocommerce_cfw_layout"
247
+ value="above" <?php if ($settings->get('woocommerce_cfw_layout') == 'above') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
248
+ <span><?php _e('Above', 'nextend-facebook-connect'); ?></span><br/>
249
+ <img src="<?php echo plugins_url('images/layouts/above.png', NSL_ADMIN_PATH) ?>"/>
250
+ </label>
251
+ <label>
252
+ <input type="radio" name="woocommerce_cfw_layout"
253
+ value="above-separator" <?php if ($settings->get('woocommerce_cfw_layout') == 'above-separator') : ?> checked="checked" <?php endif; ?><?php echo $attr; ?>>
254
+ <span><?php _e('Above with separator', 'nextend-facebook-connect'); ?></span><br/>
255
+ <img src="<?php echo plugins_url('images/layouts/above-separator.png', NSL_ADMIN_PATH) ?>"/>
256
+ </label><br>
257
+ </fieldset>
258
+ </td>
259
+ </tr>
260
+
261
+
262
+ <?php } ?>
263
+
264
  <tr>
265
  <th scope="row"><?php _e('Account details', 'nextend-facebook-connect'); ?></th>
266
  <td>
includes/user.php CHANGED
@@ -274,6 +274,10 @@ class NextendSocialUser {
274
  do_action('register_post', $userData['username'], $userData['email'], $errors);
275
 
276
  if ($errors->get_error_code()) {
 
 
 
 
277
  Notices::addError($errors);
278
  $this->redirectToLastLocationLogin();
279
  }
@@ -401,10 +405,12 @@ class NextendSocialUser {
401
 
402
  //BuddyPress - add register activity to accounts registered with social login
403
  if (class_exists('BuddyPress', false)) {
404
- if (!function_exists('bp_core_new_user_activity')) {
405
- require_once(buddypress()->plugin_dir . '/bp-members/bp-members-activity.php');
 
 
 
406
  }
407
- bp_core_new_user_activity($user_id);
408
  }
409
 
410
  /*Ultimate Member Registration integration -> Registration notificationhoz*/
274
  do_action('register_post', $userData['username'], $userData['email'], $errors);
275
 
276
  if ($errors->get_error_code()) {
277
+ //unset the persistent data, so if an error happened, the user can re-authenticate with providers (Google) that offer account selector screen
278
+ Persistent::delete($this->provider->getId() . '_at');
279
+ Persistent::delete($this->provider->getId() . '_state');
280
+
281
  Notices::addError($errors);
282
  $this->redirectToLastLocationLogin();
283
  }
405
 
406
  //BuddyPress - add register activity to accounts registered with social login
407
  if (class_exists('BuddyPress', false)) {
408
+ if (bp_is_active('activity')) {
409
+ if (!function_exists('bp_core_new_user_activity')) {
410
+ require_once(buddypress()->plugin_dir . '/bp-members/bp-members-activity.php');
411
+ }
412
+ bp_core_new_user_activity($user_id);
413
  }
 
414
  }
415
 
416
  /*Ultimate Member Registration integration -> Registration notificationhoz*/
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.22
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.23
7
  Author: Nextendweb
8
  License: GPL2
9
  Text Domain: nextend-facebook-connect
nextend-social-login.php CHANGED
@@ -19,9 +19,9 @@ require_once(NSL_PATH . '/compat.php');
19
 
20
  class NextendSocialLogin {
21
 
22
- public static $version = '3.0.22';
23
 
24
- public static $nslPROMinVersion = '3.0.22';
25
 
26
  public static $proxyPage = false;
27
 
@@ -183,6 +183,8 @@ class NextendSocialLogin {
183
  'woocoommerce_form_button_style' => 'default',
184
  'woocoommerce_form_button_align' => 'left',
185
  'woocommerce_account_details' => 'before',
 
 
186
 
187
  'memberpress_form_button_align' => 'left',
188
  'memberpress_login_form_button_style' => 'default',
19
 
20
  class NextendSocialLogin {
21
 
22
+ public static $version = '3.0.23';
23
 
24
+ public static $nslPROMinVersion = '3.0.23';
25
 
26
  public static $proxyPage = false;
27
 
183
  'woocoommerce_form_button_style' => 'default',
184
  'woocoommerce_form_button_align' => 'left',
185
  'woocommerce_account_details' => 'before',
186
+ 'woocommerce_cfw' => 'show',
187
+ 'woocommerce_cfw_layout' => 'below',
188
 
189
  'memberpress_form_button_align' => 'left',
190
  'memberpress_login_form_button_style' => 'default',
providers/twitter/twitter.php CHANGED
@@ -183,6 +183,9 @@ class NextendSocialProviderTwitter extends NextendSocialProvider {
183
  case 'mini':
184
  $avatar_url = str_replace('_normal.', '_' . $profile_image_size . '.', $profile_image);
185
  break;
 
 
 
186
  case 'bigger':
187
  $avatar_url = str_replace('_normal.', '_' . $profile_image_size . '.', $profile_image);
188
  break;
183
  case 'mini':
184
  $avatar_url = str_replace('_normal.', '_' . $profile_image_size . '.', $profile_image);
185
  break;
186
+ case 'normal':
187
+ $avatar_url = $profile_image;
188
+ break;
189
  case 'bigger':
190
  $avatar_url = str_replace('_normal.', '_' . $profile_image_size . '.', $profile_image);
191
  break;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: nextendweb
3
  Tags: social login, facebook, google, twitter, linkedin, register, login, social, nextend facebook connect, social sign in
4
  Donate link: https://www.facebook.com/nextendweb
5
  Requires at least: 4.5
6
- Tested up to: 5.3.2
7
- Stable tag: 3.0.22
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,15 @@ Using the Pro Addon you can set where the login buttons should appear on the Reg
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
 
 
 
121
  = 3.0.22 =
122
  * Fix: Updated language files
123
 
3
  Tags: social login, facebook, google, twitter, linkedin, register, login, social, nextend facebook connect, social sign in
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.23
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.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
124
+ * Fix: Twitter – 48×48 avatars can be stored again
125
+
126
+ * PRO: Fix: Longer Apple JWT token expiry.
127
+ * PRO: Improvement: compatibility with the forms generated by the plugin “Checkout for WooCommerce”
128
+ * PRO: Improvement: [Apple provider button skins](https://nextendweb.com/nextend-social-login-docs/provider-apple/#guidelines) to comply with [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple/overview/buttons/)
129
+
130
  = 3.0.22 =
131
  * Fix: Updated language files
132
 
template-parts/style.css CHANGED
@@ -128,6 +128,24 @@ div.nsl-container .nsl-button-google[data-skin="light"] {
128
  color: RGBA(0, 0, 0, 0.54);
129
  }
130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  .nsl-clear {
132
  clear: both;
133
  }
128
  color: RGBA(0, 0, 0, 0.54);
129
  }
130
 
131
+ div.nsl-container .nsl-button-apple .nsl-button-svg-container{
132
+ padding: 0 6px;
133
+ }
134
+ div.nsl-container .nsl-button-apple .nsl-button-svg-container svg{
135
+ height: 40px;
136
+ width: auto;
137
+ }
138
+
139
+ div.nsl-container .nsl-button-apple[data-skin="light"] {
140
+ color: #000;
141
+ box-shadow: 0 0 0 1px #000
142
+ }
143
+
144
+ div.nsl-container .nsl-button-apple div.nsl-button-label-container{
145
+ font-size: 17px;
146
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
147
+ }
148
+
149
  .nsl-clear {
150
  clear: both;
151
  }