Changes List User Role Editor Pro

[4.63.4] [16.12.2022]

Core version: 4.63.2

  • Update: array_merge() function is replaced with wrapper ure_array_merge(), to exclude fatal error: Argument #2 must be of type array.
  • Fix: Edit posts restrictions add-on:

    – Full list of posts was shown for user with “Own data only” turned ON in case user did not have any own post.
    – Full list of terms/categories was available at the post editor for selection for user with restricted access by terms/categories.
  • Fix: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/admin-menu-
    view.php:380
  • Fix: PHP Warning: Trying to access array offset on value of type bool in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/admin-menu-access.php on line 353
  • Core version was updated to 4.63.2
  • Update: symbols ‘{}$’ are removed from capability name before use it for internal purpose, to exclude cases like when one of plugins broke URE work adding capability like ‘edit_{$type}s’.
  • Update: array_merge() function is replaced with wrapper ure_array_merge(), to exclude fatal error: Argument #2 must be of type array.

[4.63.3] [03.11.2022]

Core version: 4.63.1

  • Update: Marked as compatible with WordPress version 6.1.
  • Fix: Navigation menu admin access add-on: Warning: Attempt to read property “slug” on int in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/nav-menus-admin-access.php on line 73

[4.63.2] [29.09.2022]

Core version: 4.63.1

  • Fix: Edit access restrictions add-on: Prohibit by selected posts ID list criteria worked incorrectly – all posts were prohibited instead of selected only.
  • Update: Edit access restrictions add-on: It skips Elementor’s internal custom post types to reduce general time execution.

[4.63.1] [21.09.2022]

Core version: 4.63.1

  • Marked as compatible with WordPress version 6.0.2
  • Fix: It was possible to open a post from a prohibited post type for editing via direct link by post ID, like /wp-admin/post.php?post=NN&action=edit
  • Update: Admin menu access add-on: URL Parameters White List: convert parameter name to lower case before processing.
  • Update: German translation was updated.
  • Core version was updated to 4.63.1
  • Fix: PHP Warning: Attempt to read property “ID” on null in ./includes/classes/user-role-editor.php on line 369
  • Fix: Deprecated: Automatic conversion of false to array is deprecated in ./includes/classes/base-lib.php on line 212

[4.63] [03.08.2022]

Core version: 4.63

  • Update: Marked as compatible with WordPress 6.0.1
  • New: Edit restrictions access add-on: It’s possible allow/prohibit for role or user the selected post types: posts, pages, custom post types.
  • Fix: Content view restrictions add-on: Fatal error: Uncaught InvalidArgumentException: target should be an object with map method or an array in /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php:156
    URE tried to check if not logged-in user can edit the post, by its ID. This leaded to a problem inside WPML plugin code.
  • Fix: Content edit restrictions: “Force custom post types to use their own capabilities” option: URE automatically created custom post types unique capabilities later then “Fusion Builder” plugin did. ‘init’ action was replaced with ‘wp_loaded’ one.
  • Update: Content view restrictions add-on: restrictions are applied to the public custom post types only.
  • Update: Few notices (e.g. “Constant FILTER_SANITIZE_STRING is deprecated”) was fixed for better compatibility with PHP 8.1.
  • Core version was updated to version 4.63
  • New: It’s possible to translate custom role names using [PolyLang](https://wordpress.org/plugins/polylang/) plugin.
  • Update: URE does not sort roles in WordPress dropdown lists. In order to sort roles by name return ‘name’ from ‘ure_sort_wp_roles_list’ filter.
  • Update: User capabilities view page minor CSS enhancements.

[4.62.1] [29.03.2022]

Core version: 4.61.2

  • Update: Marked as compatible with WordPress 5.9.2
  • Fix: Gravity Forms edit access add-on:
    – Uncaught Error: Call to undefined method URE_GF_Access_User::get_fg_list() in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/gf-access-user.php:211
    – All Gravity Forms were available for the user in spite of the restrictions set for him

[4.62] [07.03.2022]

Core version: 4.61.2

  • Update: Marked as compatible with WordPress 5.9.1
  • New: It’s possible to import all user roles at once from previously exported CSV file.
  • New: “Edit posts restrictions” add-on: It’s possible to replicate settings from the main site to all other subsites of the multisite network (Network admin->Users->User Role Editor->Update Network).
  • Core version was updated to version 4.61.2
  • Fix: “Users->Add New” page – other selected roles were not saved.
  • Update: URE uses WordPress notification styles for own operation result output.

[4.61] [26.01.2022]

Core version: 4.61.1

  • Update: Marked as compatible with WordPress 5.9
  • Update: PHP 7.3 is marked as required.
  • New: Gravity Forms Edit Access add-on: It’s possible to set what forms is allowed to edit for the selected role.
  • New: Content view restrictions add-on: [user_role_editor] shortcode “roles” and “except_roles” attributes supports the “no_role” value for logged-in users with “No role for this site” – without any role granted.
  • Fix: Content view restrictions add-on: PHP Warning: A non-numeric value encountered in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-view.php on line 224.
  • Fix: Meta boxes access add-on: PHP Warning: A non-numeric value encountered in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/meta-boxes.php on line 452.
  • Core version was updated to version 4.61.1
  • Update: If installed PHP/WordPress version is lower than required one, script termination ( wp_die() ) was replaced with notice-warning admin notice output.
  • Update: “Settings->User Role Editor->Tools->Reset” button is additionally protected from the unintended/accidental usage by text input field. Manual input of “Permanently delete all custom user roles and capabilities” text is required to enable the “Reset” button.
  • Update: Partial code review and refactoring according with WordPress & PHP coding standards.
  • Fix: “Users->selected user->Capabilities” page: ‘select all’ checkbox did not work.

Older Changes