Skip to content

wp user remove-cap incorrectly returns success status when attempting to remove cap inherited from a role #97

@johnbillion

Description

@johnbillion

Given a user with a role of Editor, running wp user remove-cap publish_posts <user> will incorrectly show a success message stating that the capability has been removed.

Attempting to remove any capability which is not directly assigned to the user (most capabilities are inherited from the user's role) will incorrectly result in a success message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions