User Role Editor - Version 4.21.1

Version Description

Download this release

Release Info

Developer shinephp
Plugin Icon 128x128 User Role Editor
Version 4.21.1
Comparing to
See all releases

Code changes from version 4.21 to 4.21.1

Files changed (3) hide show
  1. includes/class-ure-lib.php +14 -8
  2. readme.txt +9 -4
  3. user-role-editor.php +2 -2
includes/class-ure-lib.php CHANGED
@@ -336,16 +336,21 @@ if ($this->multisite && !is_network_admin()) {
336
  </div>
337
  </div>
338
 
339
- <div id="ure_confirmation_dialog" class="ure-modal-dialog">
340
- <div id="ure_cd_html" style="padding:10px;">
341
- </div>
342
- </div>
343
-
344
  <?php
345
- do_action('ure_dialogs_html');
346
  }
347
  // end of output_role_edit_dialogs()
348
 
 
 
 
 
 
 
 
 
 
 
349
 
350
  protected function show_editor() {
351
  $container_width = ($this->ure_object == 'user') ? 1400 : 1200;
@@ -379,11 +384,12 @@ if ($this->multisite && !is_network_admin()) {
379
  </div>
380
  </form>
381
  <?php
382
- $this->advertise_pro_version();
383
 
384
- if ($this->ure_object == 'role') {
385
  $this->output_role_edit_dialogs();
386
  }
 
387
  ?>
388
  </div>
389
  </div>
336
  </div>
337
  </div>
338
 
 
 
 
 
 
339
  <?php
340
+ do_action('ure_dialogs_html');
341
  }
342
  // end of output_role_edit_dialogs()
343
 
344
+
345
+ protected function output_confirmation_dialog() {
346
+ ?>
347
+ <div id="ure_confirmation_dialog" class="ure-modal-dialog">
348
+ <div id="ure_cd_html" style="padding:10px;"></div>
349
+ </div>
350
+ <?php
351
+ }
352
+ // end of output_confirmation_dialog()
353
+
354
 
355
  protected function show_editor() {
356
  $container_width = ($this->ure_object == 'user') ? 1400 : 1200;
384
  </div>
385
  </form>
386
  <?php
387
+ $this->advertise_pro_version();
388
 
389
+ if ($this->ure_object == 'role') {
390
  $this->output_role_edit_dialogs();
391
  }
392
+ $this->output_confirmation_dialog();
393
  ?>
394
  </div>
395
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vladi
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
- Stable tag: 4.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -26,12 +26,13 @@ To read more about 'User Role Editor' visit [this page](http://www.shinephp.com/
26
  Short demo about 1st steps with User Role Editor:
27
  https://youtu.be/UmMtOmWGGxY
28
 
29
- Do you need more functionality with quality support in real time? Do you wish to remove advertisements from User Role Editor pages?
30
  [Buy Pro version](https://www.role-editor.com).
31
- Pro version includes extra modules:
32
  <ul>
33
  <li>Block selected admin menu items for role.</li>
34
  <li>Block selected widgets under "Appearance" menu for role.</li>
 
35
  <li>"Export/Import" module. You can export user roles to the local file and import them then to any WordPress site or other sites of the multi-site WordPress network.</li>
36
  <li>Roles and Users permissions management via Network Admin for multisite configuration. One click Synchronization to the whole network.</li>
37
  <li>"Other roles access" module allows to define which other roles user with current role may see at WordPress: dropdown menus, e.g assign role to user editing user profile, etc.</li>
@@ -41,7 +42,7 @@ Pro version includes extra modules:
41
  <li>Shortcode to show enclosed content to the users with selected roles only.</li>
42
  <li>Posts and pages view restrictions for selected roles.</li>
43
  </ul>
44
- Pro version is advertisement free. Premium support is included. It is provided by User Role Editor plugin developer Vladimir Garagulya. You will get an answer on your question not once a week, but in 24 hours or quicker.
45
 
46
  == Installation ==
47
 
@@ -75,6 +76,10 @@ If you wish to check available translations or help with plugin translation to y
75
  https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
76
 
77
  == Changelog ==
 
 
 
 
78
  = [4.21] 11.12.2015 =
79
  * It's possible to switch off the update role confirmation (Settings - User Role Editor - General tab).
80
  * Standard JavaScript confirm box before role update was replaced with custom one to exclude 'Prevent this page from creating additional dialogs' option in the Google Chrome browser.
4
  Tags: user, role, editor, security, access, permission, capability
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
+ Stable tag: 4.21.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
26
  Short demo about 1st steps with User Role Editor:
27
  https://youtu.be/UmMtOmWGGxY
28
 
29
+ Do you need more functionality with quality support in the real time? Do you wish to remove advertisements from User Role Editor pages?
30
  [Buy Pro version](https://www.role-editor.com).
31
+ [User Role Editor Pro](https://www.role-editor.com) includes extra modules:
32
  <ul>
33
  <li>Block selected admin menu items for role.</li>
34
  <li>Block selected widgets under "Appearance" menu for role.</li>
35
+ <li>Block selected meta boxes (dashboard, posts, pages, custom post types) for role.</li>
36
  <li>"Export/Import" module. You can export user roles to the local file and import them then to any WordPress site or other sites of the multi-site WordPress network.</li>
37
  <li>Roles and Users permissions management via Network Admin for multisite configuration. One click Synchronization to the whole network.</li>
38
  <li>"Other roles access" module allows to define which other roles user with current role may see at WordPress: dropdown menus, e.g assign role to user editing user profile, etc.</li>
42
  <li>Shortcode to show enclosed content to the users with selected roles only.</li>
43
  <li>Posts and pages view restrictions for selected roles.</li>
44
  </ul>
45
+ Pro version is advertisement free. Premium support is included.
46
 
47
  == Installation ==
48
 
76
  https://translate.wordpress.org/projects/wp-plugins/user-role-editor/
77
 
78
  == Changelog ==
79
+ = [4.21.1] 16.12.2015 =
80
+ * Fix: 'Update' button did not work at User's Capabilities page due to confirmation dialog call error.
81
+
82
+
83
  = [4.21] 11.12.2015 =
84
  * It's possible to switch off the update role confirmation (Settings - User Role Editor - General tab).
85
  * Standard JavaScript confirm box before role update was replaced with custom one to exclude 'Prevent this page from creating additional dialogs' option in the Google Chrome browser.
user-role-editor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: User Role Editor
4
  Plugin URI: https://www.role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
- Version: 4.21
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
@@ -23,7 +23,7 @@ if (defined('URE_PLUGIN_URL')) {
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
- define('URE_VERSION', '4.21');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));
3
  Plugin Name: User Role Editor
4
  Plugin URI: https://www.role-editor.com
5
  Description: Change/add/delete WordPress user roles and capabilities.
6
+ Version: 4.21.1
7
  Author: Vladimir Garagulya
8
  Author URI: https://www.role-editor.com
9
  Text Domain: ure
23
  wp_die('It seems that other version of User Role Editor is active. Please deactivate it before use this version');
24
  }
25
 
26
+ define('URE_VERSION', '4.21.1');
27
  define('URE_PLUGIN_URL', plugin_dir_url(__FILE__));
28
  define('URE_PLUGIN_DIR', plugin_dir_path(__FILE__));
29
  define('URE_PLUGIN_BASE_NAME', plugin_basename(__FILE__));