WPFront User Role Editor - Version 2.12.4

Version Description

  • Plugin conflict fix.
Download this release

Release Info

Developer syammohanm
Plugin Icon 128x128 WPFront User Role Editor
Version 2.12.4
Comparing to
See all releases

Code changes from version 2.12 to 2.12.4

classes/base/class-wpfront-base-menu.php CHANGED
@@ -80,7 +80,7 @@ if (!class_exists('WPFront_Base_Menu')) {
80
  if ($_GET['action'] == 'activate') {
81
  if (isset($_GET['plugin'])) {
82
  activate_plugin($_GET['plugin'] . '/' . $_GET['plugin'] . '.php');
83
- // echo '<script type="text/javascript">window.location="' . WPFront_Static::self_admin_url('admin.php?page=' . self::MENU_SLUG) . '";</script>';
84
  // wp_die();
85
  // return;
86
  }
@@ -153,7 +153,7 @@ if (!class_exists('WPFront_Base_Menu')) {
153
  $author = wp_kses($author, $plugins_allowedtags);
154
 
155
  $action_links = array();
156
- $action_links[] = '<a href="' . WPFront_Static::self_admin_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
157
  '&amp;TB_iframe=true&amp;width=600&amp;height=550') . '" class="thickbox" title="' .
158
  esc_attr(sprintf($this->__('More information about %s'), $name)) . '">' . $this->__('Details') . '</a>';
159
 
@@ -176,9 +176,9 @@ if (!class_exists('WPFront_Base_Menu')) {
176
  case 'newer_installed':
177
  $action_links[] = '<span title="' . esc_attr__($this->__('This plugin is already installed and is up to date')) . ' ">' . $this->__('Installed') . '</span>';
178
  if (is_plugin_active($plugin['slug'] . '/' . $plugin['slug'] . '.php'))
179
- $action_links[] = '<a href="' . WPFront_Static::self_admin_url('admin.php?page=' . $plugin['slug']) . '">' . $this->__('Settings') . '</a>';
180
  else
181
- $action_links[] = '<a href="' . WPFront_Static::self_admin_url('admin.php?page=' . self::MENU_SLUG . '&action=activate&plugin=' . $plugin['slug']) . '">' . $this->__('Activate') . '</a>';
182
  break;
183
  }
184
  }
80
  if ($_GET['action'] == 'activate') {
81
  if (isset($_GET['plugin'])) {
82
  activate_plugin($_GET['plugin'] . '/' . $_GET['plugin'] . '.php');
83
+ // echo '<script type="text/javascript">window.location="' . WPFront_Static_URE::self_admin_url('admin.php?page=' . self::MENU_SLUG) . '";</script>';
84
  // wp_die();
85
  // return;
86
  }
153
  $author = wp_kses($author, $plugins_allowedtags);
154
 
155
  $action_links = array();
156
+ $action_links[] = '<a href="' . WPFront_Static_URE::self_admin_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
157
  '&amp;TB_iframe=true&amp;width=600&amp;height=550') . '" class="thickbox" title="' .
158
  esc_attr(sprintf($this->__('More information about %s'), $name)) . '">' . $this->__('Details') . '</a>';
159
 
176
  case 'newer_installed':
177
  $action_links[] = '<span title="' . esc_attr__($this->__('This plugin is already installed and is up to date')) . ' ">' . $this->__('Installed') . '</span>';
178
  if (is_plugin_active($plugin['slug'] . '/' . $plugin['slug'] . '.php'))
179
+ $action_links[] = '<a href="' . WPFront_Static_URE::self_admin_url('admin.php?page=' . $plugin['slug']) . '">' . $this->__('Settings') . '</a>';
180
  else
181
+ $action_links[] = '<a href="' . WPFront_Static_URE::self_admin_url('admin.php?page=' . self::MENU_SLUG . '&action=activate&plugin=' . $plugin['slug']) . '">' . $this->__('Activate') . '</a>';
182
  break;
183
  }
184
  }
classes/base/class-wpfront-static.php CHANGED
@@ -26,7 +26,7 @@ if (!defined('ABSPATH')) {
26
  exit();
27
  }
28
 
29
- if (!class_exists('WPFront_Static')) {
30
 
31
  /**
32
  * Plugin framework static helpers
@@ -34,7 +34,7 @@ if (!class_exists('WPFront_Static')) {
34
  * @author Syam Mohan <syam@wpfront.com>
35
  * @copyright 2013 WPFront.com
36
  */
37
- class WPFront_Static {
38
 
39
  public static function is_admin_bar_showing() {
40
  if (function_exists('is_admin_bar_showing')) {
@@ -67,6 +67,12 @@ if (!class_exists('WPFront_Static')) {
67
  return FALSE;
68
  }
69
 
 
 
 
 
 
 
70
  }
71
 
72
  }
26
  exit();
27
  }
28
 
29
+ if (!class_exists('WPFront_Static_URE')) {
30
 
31
  /**
32
  * Plugin framework static helpers
34
  * @author Syam Mohan <syam@wpfront.com>
35
  * @copyright 2013 WPFront.com
36
  */
37
+ class WPFront_Static_URE {
38
 
39
  public static function is_admin_bar_showing() {
40
  if (function_exists('is_admin_bar_showing')) {
67
  return FALSE;
68
  }
69
 
70
+ public static function WP_Version($version) {
71
+ global $wp_version;
72
+
73
+ return version_compare($wp_version, $version, '>=');
74
+ }
75
+
76
  }
77
 
78
  }
classes/class-wpfront-user-role-editor-assign-roles.php CHANGED
@@ -63,7 +63,9 @@ if (!class_exists('WPFront_User_Role_Editor_Assign_Roles')) {
63
  }
64
 
65
  public function manage_users_columns($columns) {
66
- $columns[self::SECONDARY_ROLE_COLUMN_KEY] = $this->__('Secondary Roles');
 
 
67
 
68
  return $columns;
69
  }
63
  }
64
 
65
  public function manage_users_columns($columns) {
66
+ if (!WPFront_Static_URE::WP_Version('4.4')) {
67
+ $columns[self::SECONDARY_ROLE_COLUMN_KEY] = $this->__('Secondary Roles');
68
+ }
69
 
70
  return $columns;
71
  }
classes/class-wpfront-user-role-editor-go-pro.php CHANGED
@@ -47,12 +47,15 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
47
  private $license_key = NULL;
48
  private $license_key_k = NULL;
49
  private $license_expires = NULL;
 
50
  private $license_expired = FALSE;
51
  private $product = NULL;
52
  private $slug = NULL;
53
  private $error = NULL;
54
  private $plugin_updater = NULL;
55
  private $mail_objects = array();
 
 
56
 
57
  public function __construct($main) {
58
  parent::__construct($main);
@@ -126,25 +129,30 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
126
  $entity = new WPFront_User_Role_Editor_Entity_Options();
127
  $this->license_key = $entity->get_option($this->license_key_k);
128
  if ($this->license_key !== NULL) {
 
 
 
 
 
129
  $last_checked = $entity->get_option($this->license_key_k . '-last-checked');
130
- if ($last_checked < time() - 24 * 3600) {
131
  $entity->update_option($this->license_key_k . '-last-checked', time());
132
  $result = $this->remote_get('check_license', $this->license_key);
 
 
133
  if (!empty($result)) {
134
  if (($result->activations_left === 'unlimited' || $result->activations_left >= 0) && ($result->license === 'valid' || $result->license === 'expired')) {
135
  $entity->update_option($this->license_key_k . '-status', $result->license);
136
  $entity->update_option($this->license_key_k . '-expires', $result->expires);
 
137
  $entity->update_option($this->license_key_k . '-invalid-count', 0);
138
  } else {
139
- $invalid_count = $entity->get_option($this->license_key_k . '-invalid-count');
140
- if (empty($invalid_count)) {
141
- $invalid_count = 0;
142
- }
143
  $invalid_count = $invalid_count + 1;
144
  $entity->update_option($this->license_key_k . '-invalid-count', $invalid_count);
 
145
  $this->license_status = 'invalid';
146
  if ($invalid_count === 1) {
147
- $this->send_mail('invalid', $result, 'wpfront.com');
148
  } else if ($invalid_count > 7) {
149
  $this->deactivate_license(TRUE);
150
  $this->send_mail('deactivated', $result, 'wpfront.com');
@@ -153,13 +161,19 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
153
  }
154
  }
155
  }
 
156
  $this->has_license = TRUE;
157
  $this->license_expired = $entity->get_option($this->license_key_k . '-status') === 'expired';
158
  $this->license_expires = date('F d, Y', strtotime($entity->get_option($this->license_key_k . '-expires')));
 
 
 
 
159
 
160
- $invalid_count = $entity->get_option($this->license_key_k . '-invalid-count');
161
  if ($invalid_count > 0) {
162
  $this->license_status = 'invalid';
 
163
  }
164
 
165
  if ($this->license_status === NULL) {
@@ -196,6 +210,8 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
196
  if ($result === NULL)
197
  return;
198
 
 
 
199
  $entity = new WPFront_User_Role_Editor_Entity_Options();
200
  $entity->delete_option($this->license_key_k);
201
  $entity->delete_option($this->license_key_k . '-expires');
@@ -223,10 +239,15 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
223
  $entity = new WPFront_User_Role_Editor_Entity_Options();
224
  $this->license_key = $entity->get_option($this->license_key_k);
225
 
 
 
 
226
  $result = $this->remote_get('deactivate_license', $this->license_key);
227
  if ($result === NULL)
228
  return;
229
 
 
 
230
  if ($result->license === 'deactivated' || $forced) {
231
  $entity->delete_option($this->license_key_k);
232
  $entity->delete_option($this->license_key_k . '-expires');
@@ -236,7 +257,7 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
236
  $this->send_mail('deactivate', $result, 'user');
237
  }
238
  } else {
239
- $this->error = $this->__('ERROR') . ': ' . $this->__('Unable to deactivate, expired license?');
240
  }
241
 
242
  $this->set_license();
@@ -275,7 +296,11 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
275
  return NULL;
276
  }
277
 
278
- return $result;
 
 
 
 
279
  }
280
 
281
  public function edd_plugin_update() {
@@ -326,7 +351,7 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
326
  return TRUE;
327
  }
328
 
329
- private function send_mail($action, $result, $source) {
330
  $admin_email = get_site_option('admin_email');
331
  $blog_name = is_multisite() ? get_site_option('site_name') : get_option('blogname');
332
 
@@ -361,6 +386,7 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
361
  case 'invalid':
362
  $message = $this->__('Your WPFront User Role Editor Pro license is invalid on the following site. Please activate a valid license immediately for the plugin to continue working.');
363
  $subject = '[' . $blog_name . '] ' . $this->__('WPFront User Role Editor Pro Invalid License');
 
364
  break;
365
  case 'deactivated':
366
  $message = $this->__('Your invalid WPFront User Role Editor Pro license was deactivated on the following site. Please activate a valid license immediately for the plugin to continue working.');
@@ -371,8 +397,8 @@ if (!class_exists('WPFront_User_Role_Editor_Go_Pro')) {
371
 
372
  $body = $message
373
  . '<br /><br />'
374
- . '<table>'
375
- . $body
376
  . '</table>';
377
 
378
  if (function_exists('wp_mail')) {
47
  private $license_key = NULL;
48
  private $license_key_k = NULL;
49
  private $license_expires = NULL;
50
+ private $download_id = NULL;
51
  private $license_expired = FALSE;
52
  private $product = NULL;
53
  private $slug = NULL;
54
  private $error = NULL;
55
  private $plugin_updater = NULL;
56
  private $mail_objects = array();
57
+ private $renew_url = NULL;
58
+ private $license_home_url = NULL;
59
 
60
  public function __construct($main) {
61
  parent::__construct($main);
129
  $entity = new WPFront_User_Role_Editor_Entity_Options();
130
  $this->license_key = $entity->get_option($this->license_key_k);
131
  if ($this->license_key !== NULL) {
132
+ $invalid_count = $entity->get_option($this->license_key_k . '-invalid-count');
133
+ if (empty($invalid_count)) {
134
+ $invalid_count = 0;
135
+ }
136
+
137
  $last_checked = $entity->get_option($this->license_key_k . '-last-checked');
138
+ if (($invalid_count > 0 || is_admin()) && !WPFront_Static_URE::doing_ajax() && $last_checked < time() - 24 * 3600) {
139
  $entity->update_option($this->license_key_k . '-last-checked', time());
140
  $result = $this->remote_get('check_license', $this->license_key);
141
+ $api_params = $result[1];
142
+ $result = $result[0];
143
  if (!empty($result)) {
144
  if (($result->activations_left === 'unlimited' || $result->activations_left >= 0) && ($result->license === 'valid' || $result->license === 'expired')) {
145
  $entity->update_option($this->license_key_k . '-status', $result->license);
146
  $entity->update_option($this->license_key_k . '-expires', $result->expires);
147
+ $entity->update_option($this->license_key_k . '-download-id', $result->download_id);
148
  $entity->update_option($this->license_key_k . '-invalid-count', 0);
149
  } else {
 
 
 
 
150
  $invalid_count = $invalid_count + 1;
151
  $entity->update_option($this->license_key_k . '-invalid-count', $invalid_count);
152
+ $entity->update_option($this->license_key_k . '-home-url', $api_params['url']);
153
  $this->license_status = 'invalid';
154
  if ($invalid_count === 1) {
155
+ $this->send_mail('invalid', $result, 'wpfront.com', $api_params);
156
  } else if ($invalid_count > 7) {
157
  $this->deactivate_license(TRUE);
158
  $this->send_mail('deactivated', $result, 'wpfront.com');
161
  }
162
  }
163
  }
164
+
165
  $this->has_license = TRUE;
166
  $this->license_expired = $entity->get_option($this->license_key_k . '-status') === 'expired';
167
  $this->license_expires = date('F d, Y', strtotime($entity->get_option($this->license_key_k . '-expires')));
168
+ $this->download_id = $entity->get_option($this->license_key_k . '-download-id');
169
+ if (!empty($this->download_id)) {
170
+ $this->renew_url = sprintf('https://wpfront.com/checkout/?edd_license_key=%s&download_id=%d', $this->license_key, $this->download_id);
171
+ }
172
 
173
+ //$invalid_count = $entity->get_option($this->license_key_k . '-invalid-count');
174
  if ($invalid_count > 0) {
175
  $this->license_status = 'invalid';
176
+ $this->license_home_url = $entity->get_option($this->license_key_k . '-home-url');
177
  }
178
 
179
  if ($this->license_status === NULL) {
210
  if ($result === NULL)
211
  return;
212
 
213
+ $result = $result[0];
214
+
215
  $entity = new WPFront_User_Role_Editor_Entity_Options();
216
  $entity->delete_option($this->license_key_k);
217
  $entity->delete_option($this->license_key_k . '-expires');
239
  $entity = new WPFront_User_Role_Editor_Entity_Options();
240
  $this->license_key = $entity->get_option($this->license_key_k);
241
 
242
+ if (empty($this->license_key))
243
+ return;
244
+
245
  $result = $this->remote_get('deactivate_license', $this->license_key);
246
  if ($result === NULL)
247
  return;
248
 
249
+ $result = $result[0];
250
+
251
  if ($result->license === 'deactivated' || $forced) {
252
  $entity->delete_option($this->license_key_k);
253
  $entity->delete_option($this->license_key_k . '-expires');
257
  $this->send_mail('deactivate', $result, 'user');
258
  }
259
  } else {
260
+ $this->error = $this->__('ERROR') . ': ' . $this->__('Unable to deactivate');
261
  }
262
 
263
  $this->set_license();
296
  return NULL;
297
  }
298
 
299
+ $api_params['license'] = urldecode($api_params['license']);
300
+ $api_params['item_name'] = urldecode($api_params['item_name']);
301
+ $api_params['url'] = urldecode($api_params['url']);
302
+
303
+ return array($result, $api_params);
304
  }
305
 
306
  public function edd_plugin_update() {
351
  return TRUE;
352
  }
353
 
354
+ private function send_mail($action, $result, $source, $params = NULL) {
355
  $admin_email = get_site_option('admin_email');
356
  $blog_name = is_multisite() ? get_site_option('site_name') : get_option('blogname');
357
 
386
  case 'invalid':
387
  $message = $this->__('Your WPFront User Role Editor Pro license is invalid on the following site. Please activate a valid license immediately for the plugin to continue working.');
388
  $subject = '[' . $blog_name . '] ' . $this->__('WPFront User Role Editor Pro Invalid License');
389
+ $body .= '<tr><td>' . $this->__('Invalid URL') . ':</td><td>' . $params['url'] . '</td></tr>';
390
  break;
391
  case 'deactivated':
392
  $message = $this->__('Your invalid WPFront User Role Editor Pro license was deactivated on the following site. Please activate a valid license immediately for the plugin to continue working.');
397
 
398
  $body = $message
399
  . '<br /><br />'
400
+ . '<table>'
401
+ . $body
402
  . '</table>';
403
 
404
  if (function_exists('wp_mail')) {
classes/class-wpfront-user-role-editor.php CHANGED
@@ -38,7 +38,7 @@ if (!class_exists('WPFront_User_Role_Editor')) {
38
  class WPFront_User_Role_Editor extends WPFront_Base_URE {
39
 
40
  //Constants
41
- const VERSION = '2.12';
42
  const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
43
  const OPTION_NAME = 'wpfront-user-role-editor-options';
44
  const PLUGIN_SLUG = 'wpfront-user-role-editor';
38
  class WPFront_User_Role_Editor extends WPFront_Base_URE {
39
 
40
  //Constants
41
+ const VERSION = '2.12.4';
42
  const OPTIONS_GROUP_NAME = 'wpfront-user-role-editor-options-group';
43
  const OPTION_NAME = 'wpfront-user-role-editor-options';
44
  const PLUGIN_SLUG = 'wpfront-user-role-editor';
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: syammohanm
3
  Donate link: https://wpfront.com/donate/
4
  Tags: WordPress user role editor, user role editor, role editor, user role, role, WordPress user roles, user roles, roles, user roles editor, roles editor, role manager, roles manager, manage roles, manage role, access, capability, editor, permission, role, security, user, capability editor, capability manager, custom post types, custom post type permissions, custom post type capabilities, post type permissions, post type capabilities, menu editor, role menu, role menu editor, multisite roles, multisite role editor, multisite user roles, import roles, export roles
5
  Requires at least: 3.5
6
- Tested up to: 4.4
7
- Stable tag: 2.12
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -89,6 +89,20 @@ Please visit [WPFront User Role Editor FAQ](https://wpfront.com/user-role-editor
89
 
90
  == Changelog ==
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  = 2.12 =
93
  * Widget permissions added. [Documentation](https://wpfront.com/user-role-editor-pro/widget-permissions/).
94
 
@@ -202,6 +216,18 @@ Please visit [WPFront User Role Editor FAQ](https://wpfront.com/user-role-editor
202
 
203
  == Upgrade Notice ==
204
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  = 2.12 =
206
  * Widget permissions.
207
 
3
  Donate link: https://wpfront.com/donate/
4
  Tags: WordPress user role editor, user role editor, role editor, user role, role, WordPress user roles, user roles, roles, user roles editor, roles editor, role manager, roles manager, manage roles, manage role, access, capability, editor, permission, role, security, user, capability editor, capability manager, custom post types, custom post type permissions, custom post type capabilities, post type permissions, post type capabilities, menu editor, role menu, role menu editor, multisite roles, multisite role editor, multisite user roles, import roles, export roles
5
  Requires at least: 3.5
6
+ Tested up to: 4.6
7
+ Stable tag: 2.12.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
89
 
90
  == Changelog ==
91
 
92
+ = 2.12.4 =
93
+ * Plugin conflict fix.
94
+
95
+ = 2.12.3 =
96
+ * WP 4.4 compatibility.
97
+ * Extended permissions bug fix.
98
+ * Performance improvements.
99
+
100
+ = 2.12.2 =
101
+ * License fail info added.
102
+
103
+ = 2.12.1 =
104
+ * License functions fallback handler.
105
+
106
  = 2.12 =
107
  * Widget permissions added. [Documentation](https://wpfront.com/user-role-editor-pro/widget-permissions/).
108
 
216
 
217
  == Upgrade Notice ==
218
 
219
+ = 2.12.4 =
220
+ * Plugin conflict fix.
221
+
222
+ = 2.12.3 =
223
+ * Bug and compatibility fixes.
224
+
225
+ = 2.12.2 =
226
+ * License fail info added.
227
+
228
+ = 2.12.1 =
229
+ * License functions.
230
+
231
  = 2.12 =
232
  * Widget permissions.
233
 
templates/go-pro.php CHANGED
@@ -91,6 +91,9 @@ if (!defined('ABSPATH')) {
91
  break;
92
  case 'invalid':
93
  echo $this->__('Invalid');
 
 
 
94
  break;
95
  }
96
  ?>
@@ -101,7 +104,13 @@ if (!defined('ABSPATH')) {
101
  <?php echo $this->__('License Expires'); ?>
102
  </th>
103
  <td class="<?php echo $this->license_expired ? 'expired' : ''; ?>">
104
- <?php echo $this->license_expires; ?>
 
 
 
 
 
 
105
  </td>
106
  </tr>
107
  <?php } ?>
@@ -113,7 +122,21 @@ if (!defined('ABSPATH')) {
113
  <script type="text/javascript">
114
  (function ($) {
115
  var noblock = false;
116
- var $form = $('#license-form').submit(function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  if (noblock)
118
  return;
119
 
@@ -130,14 +153,7 @@ if (!defined('ABSPATH')) {
130
  if (response)
131
  window.location.replace(window.location.href);
132
  else {
133
- noblock = true;
134
- var $form = $('#license-form');
135
- $form.find("input").prop('disabled', false);
136
- $form.find("input").removeAttr('disabled');
137
- $form.find("input[type='submit']").click();
138
- setTimeout(function () {
139
- $form.find("input[type='submit']").click();
140
- }, 500);
141
  }
142
  }, 'json');
143
 
91
  break;
92
  case 'invalid':
93
  echo $this->__('Invalid');
94
+ if(!empty($this->license_home_url)) {
95
+ echo ' [' . $this->license_home_url . ']';
96
+ }
97
  break;
98
  }
99
  ?>
104
  <?php echo $this->__('License Expires'); ?>
105
  </th>
106
  <td class="<?php echo $this->license_expired ? 'expired' : ''; ?>">
107
+ <?php
108
+ echo $this->license_expires;
109
+
110
+ if ($this->license_status != 'invalid' && !empty($this->renew_url)) {
111
+ echo sprintf('<a class="add-new-h2 post-title-action" href="%s" target="_blank">%s</a>', $this->renew_url, $this->__('Renew'));
112
+ }
113
+ ?>
114
  </td>
115
  </tr>
116
  <?php } ?>
122
  <script type="text/javascript">
123
  (function ($) {
124
  var noblock = false;
125
+
126
+ function formSubmit() {
127
+ noblock = true;
128
+ var $form = $('#license-form');
129
+ $form.find("input").prop('disabled', false);
130
+ $form.find("input").removeAttr('disabled');
131
+ $form.find("input[type='submit']").click();
132
+ setTimeout(function () {
133
+ $form.find("input[type='submit']").click();
134
+ }, 500);
135
+ }
136
+
137
+ $('#license-form').submit(function () {
138
+ setTimeout(formSubmit, 30000);
139
+
140
  if (noblock)
141
  return;
142
 
153
  if (response)
154
  window.location.replace(window.location.href);
155
  else {
156
+ formSubmit();
 
 
 
 
 
 
 
157
  }
158
  }, 'json');
159
 
wpfront-user-role-editor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WPFront User Role Editor
5
  * Plugin URI: http://wpfront.com/user-role-editor-pro/
6
  * Description: Allows you to manage user roles.
7
- * Version: 2.12
8
  * Author: Syam Mohan
9
  * Author URI: http://wpfront.com
10
  * License: GPL v3
4
  * Plugin Name: WPFront User Role Editor
5
  * Plugin URI: http://wpfront.com/user-role-editor-pro/
6
  * Description: Allows you to manage user roles.
7
+ * Version: 2.12.4
8
  * Author: Syam Mohan
9
  * Author URI: http://wpfront.com
10
  * License: GPL v3