Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't add new tag using Gutenberg editor (just regular post editor/quick edit) #2545
Logged in as a user with "author" permissions. Created a new post with Gutenberg. Tried to add new tag (one that is new for the blog) in Gutenberg. The new tag briefly flashes, and disappears. It is not saved after clicking update.
Went to the list of posts. Did "Quick Edit". Added a new tag, which was saved. When I went into Guternberg, I was able to see the tag. I can even "delete" it, but, when I update the post, the old tag remains on the post.
We tried this in Firefox, Safari, and Chrome - the same behavior persisted.
Steps to Reproduce (for bugs)
When an author creates a new tag using Gutenberg, that tag should be saved with their post.
Related Issues and/or PRs
Maybe related: #1304
This is an interesting one, since the current editor doesn't seem to really respect the capabilities for adding terms. For example, as a contributor, I can add a new tag for a post in the current editor, despite the fact that contributors should not have this right:
I believe the issue can be tracked back to this logic, which checks the
Which appears to be tied into this Trac issue:
Because Gutenberg tries to create these terms using the REST API endpoint, and the endpoint checks the
Given the above Trac issue, it's unclear whether moving forward we should want to respect the capability for managing terms before giving the user the option to create a new tag, since there is some conflicting feedback on whether this is intentional.