User Role Editor Pro version 4.19.2

User Role Editor Pro version 4.19.2 is available for download and automatic updates. Login to your member account and go to the Download page.
Version number 4.19.1 was skipped as during its testing stage the free version was updated to 4.19.2.

Version 4.19.2 changes list

  • Fix: Default role value has not been refreshed automatically after change at the “Default Role” dialog.
  • Fix: global $post variable was changed in some cases by the “Posts view restrictions” add-on.
  • Fix: Admin menu access add-on: User could upload new media at the Post Editor with “Media -> Add New” menu item blocked. “File Upload” tab is removed in this case now. User may select from the existing Media Library items only.
  • More detailed notice messages are shown after default role change – to reflect a possible error or problem.
  • Other default roles (in addition to the primary role) was assigned to a new registered user for requests from the admin back-end only. Now this feature works for the requests from the front-end user registration forms too (including WordPress multisite).
  • Interface to Posts bulk action “Edit access” was available to the users without “ure_edit_posts_access” capability – fixed. Action itself was not fulfilled (blocked at server side) due to obvious permissions error.
  • Content view restrictions add-on: custom post types selection enhanced in order to include types which are not public
  • Content view restrictions add-on: processes now custom post type content beyond the main loops, including ‘wlbdash'(Dashboard) post type from “White Label Branding for WordPress Multisite” plugin.
  • Content edit restrictions add-on: supports unique create custom post type capability even in case it does not use ‘edit_’ in its name. For example for ‘wlbdash’ post type, create post capability will get name ‘create_wlbdashs’ instead of default ‘wlb_dashboard_tool’.
  • Admin menu access add-on: bug was fixed for URL starting from ‘admin.php?page=’
  • Added new filter ‘ure_get_allowed_gf_forms’. It allows to modify array of Gravity Forms ID available to the current user.
    Usage example:

    add_filter('ure_get_allowed_gf_forms', 'allow_gf_forms_for_role');
    
    function allow_gf_forms_for_role($forms_list) {
        if (!current_user_can('editor'))  {
            return $forms_list;
        }
        $forms_list[] = 1;
        $forms_list[] = 8;
        
        return $forms_list;
    }
    

    The code above adds Gravity Forms with ID 1, 8 to the list of forms allowed for the currently logged in user with the ‘Editor’ role.

  • CSS enhanced to exclude column wrapping for the capabilities with the long names.
  • The translation text domain was changed to the plugin slug (user-role-editor) for the compatibility with translations.wordpress.org
Share