Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message not correctly displayed #141

Open
dottxado opened this issue Oct 18, 2023 · 0 comments · May be fixed by #142
Open

Error message not correctly displayed #141

dottxado opened this issue Oct 18, 2023 · 0 comments · May be fixed by #142

Comments

@dottxado
Copy link

dottxado commented Oct 18, 2023

I have customized the capabilities, removing the possibility of creating guest users, but the editor is showing an error on displaying the error:
image

I'm aware of #76, but this issue is about showing the right error message provided from the backend.

How to reproduce:

  1. Add in a plugin a code like this
add_filter('user_has_cap', 'removeGuestAuthorCap', 9999);

function removeGuestAuthorCap(array $user_caps): array
    {
        unset($user_caps['create_guest_authors']);

        return $user_caps;
    }
  1. Login to WordPress admin panel as an user that's not a Super Admin
  2. Try to add a guest author to a post
  3. The error message shown in the editor should report "undefined"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant