* Core version: 4.68
* New: User Role Auto-Expire add-on: a role can be revoked automatically from all its users when the set expiration date and time is reached, or users can be reassigned to a fallback role instead. Turn the module on at Settings > Additional Modules ("Activate User Role Auto Expire module"), then use the new "Auto-Expire" button at the User Role Editor page toolbar: set the expiration date and time (the active site timezone is shown), select the action after expiration - revoke the current role completely or reassign users to another role - and check the summary line. Expiration rules are processed automatically by the hourly WordPress cron event. The 'administrator' role can not be expired and can not be used as a fallback role, so the last administrator lockout is impossible. Access to the add-on is controlled by the new 'ure_role_auto_expire' capability.
* New: User Role Auto-Expire add-on: per-user role expirations. The add-on replaces the "Other Roles" section at the user profile page with the "User Role Editor - Assigned Roles & Expiration" section: the Primary Role select is synced with the top WordPress "Role" dropdown both ways, additional roles are added and removed per row, and any granted role (except 'administrator') can get its own expiration date and time (the active site timezone is shown) followed by a full revoke or a replacement with a selected fallback role. Expired roles are processed by the hourly 'ure_user_role_expiration_check_event' cron event; a user left with no roles gets the site default role automatically. A user can not set or change expirations for his own roles.
* New: User Role Auto-Expire add-on: the "Without role" button dialog at the Users page offers an expiration for the granted role too: check "Set expiration for the new role", pick the expiration date and time (the active site timezone is shown) and choose whether to revoke the role completely or to replace it with a fallback role when it expires. The same restrictions as everywhere else apply: the 'administrator' role never expires, and the fallback list offers only the roles you are allowed to grant yourself.
* New: User Role Auto-Expire add-on: both hourly expiration jobs work in bounded batches (200 users or 15 seconds per run, whichever comes first, both filterable) and drain a large backlog through chained follow-up events every 10 seconds, so a mass role expiration can not exhaust the PHP time limit; a database-level lock prevents overlapping runs. For busy sites, consider replacing the page-load triggered WP-Cron with a real system cron: define 'DISABLE_WP_CRON' as true in wp-config.php and run 'wp cron event run --due-now' from the server crontab every minute - role revocations are then processed decoupled from visitor page loads.
* New: User Role Auto-Expire add-on: the "Grant Roles" dialog at the Users page offers a per-role expiration too: add additional roles via the "+ Add additional role..." dropdown, check "Set expiration date" for any of them (or for the primary role), pick the expiration date and time and choose whether to revoke the role or to replace it with a fallback role when it expires. The expiration input is validated before any role is granted, and the dialog stays open when a correction is needed. The same restrictions as everywhere else apply: the 'administrator' role never expires, and the fallback list offers only the roles you are allowed to grant yourself.
* Fix: Content View Restrictions add-on: the prohibited posts cache (30 seconds by default) could be rebuilt by several PHP-FPM workers simultaneously when it expired under load - each rebuild scanned all content view restrictions meta rows with a full table scan, multiplying slow queries and amplifying a PHP-FPM workers pool exhaustion on large sites. The restrictions query uses the wp_postmeta meta_key index now (IN() lookup without a sort), only one worker rebuilds the cache while others wait for its result, the cache is read once per request instead of once per WordPress query, and the cache lifetime is adjustable via the new 'ure_content_view_restrictions_cache_ttl' filter.
* Update: Content View Restrictions add-on: the prohibited posts list is built much faster at large sites. Posts which can not be hidden from the listings are filtered out before the edit permission check, and the edit permission is checked once per post type, post author and post status combination instead of once per post - it was a post load and a capability check per every post with the restriction meta data. The restriction meta data is read with one lookup per meta key, so the database uses the meta_key index instead of scanning the whole post meta table when a noticeable share of the table belongs to the restrictions. A 'map_meta_cap' or 'user_has_cap' filter which may decide per post switches the per-post check back on automatically; the 'ure_cvr_edit_check_post_independent' filter confirms that such a filter does not touch the post edit permissions.
* New: Content View Restrictions add-on: the 'ure_cvr_prohibited_posts_debug' action reports every step of the prohibited posts cache work - what the cache held at each read, if the worker got the rebuild lock and for how long it waited, the rebuild duration, the queries count and the list size - with the request ID and the process ID, so that the parallel requests can be told apart at a busy site. The 'ure_cvr_prohibited_posts_rebuilt' action gets the rebuild details as its second argument.
* Fix: Content View Restrictions add-on: a worker which found the prohibited posts cache empty and then waited for the rebuild lock did not get the list which the lock holder stored meanwhile: without a persistent object cache WordPress answers a repeated read of a missing option from the request memory, so the worker rebuilt the list again. The cache is read from the database after the lock now, which gives one rebuild per user per cache window. The 'stored' field of the 'ure_cvr_prohibited_posts_debug' rebuild report tells whether the cache holds the list: WordPress reports a false write result when the identical value is stored already.
* Update: Content View Restrictions add-on: the restriction meta data is read from the database once per cache window for all users together instead of once per user, and the shared copy is dropped as soon as a restriction is changed. With many active users this removes a post meta table read per user per cache window, and a user's prohibited posts list is built about four times faster. The 'ure_cvr_prohibited_posts_debug' rebuild report shows where the data came from in 'stats.data.source'.
* Security fix (core): Users page ("Change role to..." action), user profile page, "Add New User" page, "Add Existing User" invitation for multisite, REST API: a user with the "promote_users" capability could assign themselves or others roles with capabilities beyond their own. The check of the "Change role to..." action could be bypassed with specially crafted request parameters, and the role assignment made by WordPress itself at the other places was not under control. Such roles are refused at all these places now. Thanks to Thu Ta for the responsible disclosure.
* Security fix (core): the list of critical capabilities checked at the role assignment is extended: it covers the WordPress administration capabilities which open the users, plugins, themes, network and options screens, and the User Role Editor own capabilities 'ure_edit_roles' and 'ure_manage_options' which open the plugin screens. A user may grant a role carrying such a capability only if he holds that capability himself. The list can be made longer or shorter with the 'ure_get_critical_capabilities' filter. Thanks to Maulana Abdan Sakur for the responsible disclosure.
* Fix (core): Capabilities editor (roles and users): the page layout did not adapt properly to the browser window size - the toolbar could move out of view. It fits the window now and follows its resizing.
* Update (core): 'unfiltered_html' is a critical capability as well: a user who does not hold it can not grant a role which carries it, e.g. the Editor role.
* Fix (core): User profile page: additional/other roles with critical capabilities were removed from a user when a user manager without those capabilities saved the user's profile. The roles the user already had are kept now.
* Update (core): User profile page: the roles which were not assigned at the profile save, as the current user is not allowed to grant them, named in dismissible notice, the other selected roles are still granted.
* Update (core): Users page ("Grant Roles"): the roles which the current user is not allowed to grant are skipped and named in a dismissible notice, the other selected roles are still granted.
* Core version: 4.67.1
* Security fix: User profile page: a user with the "promote_users" capability could assign themselves or others roles with capabilities beyond their own by crafting a POST request to their own profile page. The self-assignment guard and critical-capability check introduced in 4.67 for the Users page role-assignment actions are now applied to the profile_update path as well. Thanks to Ahmed Mahmoud (Haktrak Networks) and Brandlion Cyber for the responsible disclosure.
* Update: Other Roles add-on: the 'administrator' role exclusion is enforced end-to-end: the dialog does not render its row at all, and the rule is re-enforced server-side at URE_Other_Roles_Access::blocking_needed(), so neither a crafted POST request nor a custom 'ure_other_roles_access' filter value can lift the administrators block behind 'edit_users'/'delete_users' and the 'editable_roles' filter.
* Fix: Other Roles add-on: PHP 8 TypeError in array_unique() when loading access data for a user whose user meta does not contain the 'data' key or holds a non-array value.
* Fix: Other Roles add-on: an empty selection under the "Not Selected" block model removes the role entry now, instead of leaving an empty entry behind.
* Core version: 4.67
* Security fix (core): Users page: Change Role, Grant Role, Add Role: a user with the "promote_users" capability could grant themselves (or others) roles with capabilities beyond their own, when custom high-privilege roles existed on the site. Role assignment now requires that the acting user already holds all critical capabilities of the target role; self-assignment of roles is no longer allowed. Thanks to Ahmed Mahmoud (Haktrak Networks) for the responsible disclosure.
* New (core): custom filter 'ure_get_critical_capabilities' allows to modify the list of critical capabilities used for the role assignment check. 'manage_options', 'activate_plugins', 'delete_plugins', 'edit_users', 'delete_users' capabilities are under control by default.
* Fix (core): "Without role" button on the Users page stopped working (showed "Please select at least one item to perform this action on." after role selection).
* Update (core): allow users with only the 'promote_users' capability to use the "Without role" button.
* Update: the site URL (the 'siteurl' option value) is sent to the URE Pro update server with update checking/download request.
* Core version: 4.66.3
* Update: Marked as compatible with WordPress version 7.2
* Update: Required PHP version increased up to 8.2
* Fix: Content view restrictions add-on: restricted posts were not excluded from the front-end posts lists (home page, search results, archives) and from other posts queries, which do not set a single post type: post type is not set at all, set as an array of post types or as 'any'. The check "restrictions are applied to the public custom post types only" added in version 4.63 skipped such queries. Now such queries are skipped only if all requested post types are registered non-public ones. A single post/page view is processed as before: the selected access error action is applied. Discovered and responsibly reported by Michael LaRue.
* Fix: Content view restrictions add-on: the access error action set for a role/user was not loaded under PHP 8, when a post was blocked at the roles level: a string constant was compared with 0 instead of the current access error action value. URE_Content_View_Restrictions::get_access_error_action() returned 0, and the redirect access error action set via the 'ure_content_view_access_data_for_user' or 'ure_content_view_access_data_for_role' filter was not applied. Reported by Michael LaRue.
* New: "Current user Media only" option. Turn it on at Settings > Additional Modules, then tick "Current user Media only" in the "Additional Options" section of the role editor for any role: users with that role see only the media items they uploaded themselves in the Media Library (wp-admin only; administrators are not restricted). Use the 'ure_attachments_show_full_list' filter (return true) to show the full list in a custom context.
* New: Brazilian Portuguese (pt_BR) translation was added. Thanks to Jayron Castro.
* Fix: Admin menu access add-on: Remove only menu items, which submenu was emptied as blocked by URE itself. Some plugins/themes (e.g. Hello Elementor) intentionally remove all their submenu items at 'admin_head' to show a top level menu item only, and URE Pro removed such top level menu item.
* Update: Admin menu access add-on: the code which applies admin menu restrictions was moved to the separate URE_Admin_Menu_Access_Restrict class, which is not loaded for superadmin at all, as URE Pro does not restrict superadmin. URE_Admin_Menu_Access class keeps the code required for every user: Admin Menu access UI, admin menu copy update.
* Fix: Admin menu access add-on: a top level menu item, which is a submenu item for administrator (the admin menu copy is made for administrator), was not removed from menu when blocked (not allowed) for another role. Example: Wordfence "Login Security" page is a submenu item under "Wordfence" for users with 'activate_plugins' capability and a top level menu item for other users. Now restrictions set for the submenu item are applied to such top level menu item too.
* Fix: Several labels on the "About" box ("User Role Editor", "User Role Editor Pro", "Version:", "Plugin URL:", "Download URL:", "Author:", "Send support question") and the "Reset User Roles" heading at the Settings > Tools tab were hardcoded in English and could not be translated. The misspelled "Dowload URL:" label was corrected to "Download URL:".
* Update: "Admin Menu", "Gravity Forms Access", "Meta Boxes", "Nav Menus", "Other Roles", "Plugins", "Posts Edit" and "Widgets Admin" add-ons dialogs JavaScript: the own copy of the AJAX request success handler, identical to the core one, was removed; the core ure_main.update_success() is used instead.
* Update: Admin menu access add-on: unused code was removed from URE_Admin_Menu_Copy::get_submenu(): it added the "Profile" item to a local copy of the admin menu, which was not used. URE_Admin_Menu_Copy::get_menu() adds this item to the admin menu copy.
* Fix (core): Multisite: only the first 100 sites of a network were processed when a role change was applied to all sites of the network, network add-ons data was replicated, a role was imported to all sites, and plugin data was cleaned up on uninstall, as get_sites() (used by URE_Base_Lib::get_blog_ids() since version 4.66) returns 100 sites max by default.
* New (core): 'ure_get_blog_ids_args' filter allows to exclude archived, spam and deleted sites from the list of network sites processed by the plugin (e.g. when a role change is applied to all sites of the network). Return an array with any of 'archived', 'spam', 'deleted' keys set to 0 (exclude such sites) or 1 (process such sites only), e.g. array( 'archived' => 0, 'spam' => 0, 'deleted' => 0 ). Other get_sites() arguments are ignored. Plugin data cleanup on uninstall always processes all sites.
* Core version: 4.66.2
* Security Fix: administrator-role protection (URE_Protect_Admin::exclude_admin_role()) only excluded the "administrator" role from the assignable-roles list on the classic user edit screens, not on the plugin's own admin-ajax.php actions; a user holding the "promote_users" capability (without the plugin's own key capability) could therefore grant themselves or another user the "administrator" role via the "Add Role"/"Grant Roles" AJAX action, bypassing the same protection the classic Users screen correctly enforced. Discovered and responsibly reported by Humberto (SVO, https://svo.com.br).
* Fix: the "Grant Roles" dialog's AJAX request (get_grant_roles) incorrectly required the plugin's own key capability instead of "promote_users", refusing users who only had "promote_users" - the capability the Grant Roles feature is designed for - with an "Insufficient permissions" error.
* Fix: "Posts Edit Access" add-on: a user restricted (Allow model) to a specific category, post ID list, or author no longer could create a new post/page once they already had at least one matching item, because the "just clicked Add New" bypass in URE_Posts_Edit_Access::block_edit_post() only recognized the classic-editor save request, not the plain page load that immediately follows creating the new auto-draft; the brand-new post, having no category/author of its own yet, then failed the restriction check like any other non-matching item.
* Core version: 4.66.2
* Fix: Opening the "Admin Menu", "Plugins", "Posts Edit", "Posts View", "Meta Boxes", "Widgets Admin", "Nav Menus", "Other Roles", "Gravity Forms Access" or "Import Role" dialog from the role editor toolbar threw a JavaScript "ure_ui_button_text is not defined" error and left the dialog's buttons unstyled, caused by the 4.66.1 core ure.js refactor renaming that helper to ure_main.ui_button_text() without updating these Pro-only add-on scripts.
* Core version: 4.66.1
* Update: Marked as compatible with WordPress 7.1
* Required PHP version increased up to 7.4
* Update: Plugin loading code is enhanced.
* Update: Plugin does not use self-defined PHP global constants. Needed data moved inside classes.
* Update: "Admin menu access" add-on: White list of URL arguments allowed by default for WooCommerce products and shop orders list pages was updated.
* Fix: URE_Assign_Role_Pro::get_users_queued() referenced an undefined constant instead of self::CRON_ACTION_HOOK.
* Fix: URE_Assign_Role_Pro::assign_role_to_user() used a loose in_array() check against $user->caps that was always true, so the background role-assignment feature never actually assigned the role; now correctly checks $user->roles.
* Fix: "Posts Edit Access" bulk action's user ID list could contain stray whitespace instead of clean integers; user IDs are now properly cast to int.
* Update: URE_Uninstall_Pro::init_options_list() now references addon classes own *_KEY constants instead of duplicating their option name strings.
* Fix: activating Pro while the free plugin was already active still left both active in some load orders, because URE_Core_Pro::init() (which registered the fix above) was itself skipped when the free plugin had already defined URE_Loader/URE_Core earlier in the same request; the activation-hook registration now happens unconditionally via a standalone function in the main plugin file.
* Core version was updated to 4.66.1
* Update: URE_Admin_Notice class output was escaped with esc_attr(), wp_kses_post() functions.
* Security Fix: SQL queries in URE_Editor::direct_network_roles_update() and leave_roles_for_blog() are passed to $wpdb->prepare() with real %s placeholders.
* Security Fix: URE_Editor::get_caps_columns_quant() now requires a valid nonce before writing a display-preference transient from $_POST, closing a minor CSRF gap.
* Fix: URE_Protect_Admin used a bitwise "&" instead of a logical "&&" when checking a capabilities array, which could throw a PHP 8 TypeError; fixed to use "&&", and the related IN() SQL clause is now hardened with array_map('absint', ...).
* Update: nonce actions used on the Settings/Tools pages are now scoped per form (ure_settings_update, ure_addons_settings_update, ure_default_roles_update, ure_settings_ms_update, ure_settings_tools_exec) instead of one shared string.
* Update: additional output escaping was added across URE_View, URE_Role_View and URE_Role_Additional_Options (role/capability slugs, wp_json_encode() instead of json_encode(), esc_url() on form actions), plus a defense-in-depth capability check in URE_Role_Additional_Options::save().
* Update: rel="noopener noreferrer" was added to external links opened with target="_new".
* Update: hardcoded text strings in the role editor toolbar are now translatable.
* Fix: URE_Assign_Role used the %i SQL placeholder, which needs WordPress 6.2+, below the plugin's declared minimum; replaced with direct interpolation of internal table names.
* Fix: URE_Editor::reset_user_roles() had an unescaped wp_die() message; further output escaping (esc_url(), esc_html(), absint()) was added across URE_Base_Lib, URE_Editor, URE_User_Other_Roles and URE_User_View.
* Fix: several request-var/database-result comparisons that could be bypassed by PHP type juggling are now strict, including URE_Grant_Roles::is_try_remove_admin_from_himself()'s "can't remove your own admin role" check.
* Fix: URE_Base_Lib::set() now correctly rejects unknown properties instead of silently creating them; URE_View declares its $advert property explicitly.
* Update: $_SERVER['REQUEST_URI'] is now validated and unslashed before sanitizing in URE_Lib::is_right_admin_path() and URE_User_Other_Roles::is_user_profile_extention_allowed().
* Update: posted role IDs are now sanitized (sanitize_key(), wp_unslash()) in URE_Editor, and its 'object'/role-selection request parameters are constrained to known values.
* Update: URE_Base_Lib::get_blog_ids() now uses get_sites() instead of a raw database query.
* Update: URE_Capability::revoke_caps() now uses get_users() instead of a raw database query.
* Update: URE_Protect_Admin::has_administrator_role() now uses user_can() instead of a raw database query.
* Fix: URE_Assign_Role::$lib property was changed to protected.
* Fix: URE_Uninstall::delete_options() private function changed to protected.
* Fix: URE_Uninstall::init_options_list() referenced 'ure_task_queue', which never matched URE_Task_Queue::OPTION_NAME ('ure_tasks_queue'), so that option was never deleted on uninstall.
* Fix: URE_Core::define_files() - class URE_Uninstall was not added correctly, null was written instead of class name.
* Fix: activating Pro while the free version was already active caused a fatal "Cannot redeclare ure_log_error()" error; the function declaration is now guarded with function_exists().
* Fix: activating this plugin while the paired Pro plugin was already active silently left both active instead of deactivating the paired one, because the register_activation_hook() call never ran in that request; it's now
* Core version: 4.65
* Update: Marked as compatible with WordPress 7.0
* Update: Minor fixes to pages markup are applied to correspond WordPress 7.0 CSS changes.
* Update: "defined('ABSPATH')" guard was added to all PHP files to exclude PHP files direct execution.
* Update: sanitize_text_field(), sanitize_key(), sanitize_url() functions are used to secure user input before processing.
* Update: _nonce field checking was added before data update in addition checking made already on the higher level.
* Core version was updated to 4.65
* Fix: Users->User Role Editor->Import: single user role was imported successfully but the empty page was shown instead of URE page with successful import notification.
* Fix: Meta Boxes Access add-on: WP Multisite: Network Admin->Users->User Role Editor->Meta Boxes: current role does not lose now all capabilities after the 'Update' button click.
* Fix: Other Roles Access add-on: WP Multisite: Network Admin->Users->User Role Editor->Other Roles: current role does not lose now all capabilities after the 'Update' button click.
* Fix: Posts Edit Access add-on: WP Multisite: Network Admin->Users->User Role Editor->Posts Edit: current role does not lose now all capabilities after the 'Update' button click.
* Fix: Plugins Access add-on: WP Multisite: Network Admin->Users->User Role Editor->Plugins: current role does not lose now all capabilities after the 'Update' button click.
* Fix: Export roles CSV download file with .pdf extension in the FireFox browser. Content type header was replaced to 'text/plain'.
* Update: Meta Boxes Access add-on: data is updated via AJAX without full page refresh now.
* Update: Other Roles Access add-on: data is updated via AJAX without full page refresh now.
* Update: Posts Edit Access add-on: data for role is updated without full page refresh via AJAX now.
* Update: Plugins Access add-on: data is updated via AJAX without full page refresh now.
* Update: Import role CSV: uploaded file .csv extention and mime type checking were added.
* Update: "Users->User Role Editor->Import" button is hidden in case page is opened from the WP Multisite -> Network admin. Use it from the selected single site only.
* Core version: 4.64.6
* Update: Marked as compatible with WordPress 6.9
* Update: Gravity Forms Access add-on: Form switcher drop-down list includes only forms allowed for the current user.
* Core version was updated to 4.64.6
* Update: Minor code enhancements according to the "Plugin Check" tool recommendations.
* Update: "Users->Grant Roles" HTML code download optimization to exclude cases when URE's "Grant Roles" data flickers or stays visible while Users page is opening.
* Core version: 4.64.5
* Update: Marked as compatible with WordPress 6.8
* Fix: PHP Deprecated: URE_Widgets_Admin_View::get_html(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/widgets-admin-view.php on line 133
* Fix: PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>user-role-editor</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. pro/includes/classes/addons-manager.php called esc_html__() from constructor. Moved to the 'init' action.
* Core version was updated to 4.64.5
* Update: Minor changes were applied to the CSS/JS loading code to minimize "Plugin Check" tool warnings.
* Plugin headers were extended at role-editor.php and readme.txt files according to wordpress.org recommendations.