User Role Editor Pro version 4.64.2

User Role Editor Pro version 4.64.2 was published at March 26, 2024. It’s mainly existing code enhancements and PHP 8.3 compatibility release.

Changes List

Core version: 4.64.2

  • Update: Marked as compatible with WordPress 6.5
  • Update: Content view restrictions add-on: historically if field “For users” was empty, URE applies “Selected Roles” to the existing post (in case it was not assigned yet), but a default value set by user at URE Settings is applied in both cases, for new added and existing posts.
  • Fix: Posts/pages edit restrictions add-on: endless recursion calls issue (conflict with “The Events Calendar” plugin) was fixed.
  • Fix: Admin menu access add-on:
    – full URL (including domain) was used for some menu items. For this reason checkboxes of such menu items may lose selection in case of replication of admin menu restrictions to all subsites under WP multisite. Re-check your admin menu access settings just in case mentioned menu items became unchecked after this update.
    – strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/admin-menu-view.php on line 253
  • Fix: wp-admin pages permissions viewer: Undefined array key -1 in /wp-content/plugins/user-role-editor-pro/pro/includes/classes/page-permissions-view.php on line 137
  • Fix: Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in wp-content/plugins/user-role-editor-pro/pro/includes/classes/utils.php on line 181
  • Fix: Notice: Array to string conversion in wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-edit-access-user.php on line 965
  • Core version was updated to 4.64.2
  • Update: URE_Advertisement: rand() is replaced with wp_rand().
  • Update: URE_Ajax_Proccessor: json_encode() is replaced with wp_json_encode().
  • Update: User_Role_Editor::load_translation(): load_plugin_textdomain() is called with the 2nd parameter value false, instead of deprecated ”.
  • Update: URE_Lib::is_right_admin_path(): parse_url() is replaced with wp_parse_url().
  • Update: URE_Lib::user_is_admin() does not call WP_User::has_cap() to enhance performance.
  • Update: Plugin version was added to CSS loaded to the “Users”, “Users->User Role Editor”, “Settings->User Role Editor” pages.
  • Update: All JavaScript files are loaded in footer now.
  • Fix: “Users->Add New Users”. Unneeded extra ‘table’ HTML tags was removed (thanks to Alejandro A. for this bug report).