Hello,
I wanted to disallow my author role from posting articles in “Uncategorized” and “Featured” to do so, I went to my author role and clicked the “Post Edit” menu on the right and chose Prohibit and listed the corresponding IDs in the “with category/taxonomy ID (comma separated)” field.
It works like a charm – when I enter WordPress with such a user the options to choose these categories are gone but on the admin posts page I see this error on top which is quite annoying:
Warning: Undefined array key “post_type” in /vhosts/…/web/wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-edit-access.php on line 546
Warning: Undefined array key “post_type” in /vhosts/…/web/wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-edit-access.php on line 407
Warning: Cannot modify header information – headers already sent by (output started at /vhosts/…/web/wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-edit-access.php:546) in /vhosts/…/web/wp-admin/admin-header.php on line 9
Warning: Cannot modify header information – headers already sent by (output started at /vhosts/…/web/wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-edit-access.php:546) in /vhosts/…/web/wp-includes/option.php on line 1692
Warning: Cannot modify header information – headers already sent by (output started at /vhosts/…/web/wp-content/plugins/user-role-editor-pro/pro/includes/classes/posts-edit-access.php:546) in /vhosts/…/web/wp-includes/option.php on line 1693
Am I doing something wrong and is it possible to hide this error message?