Skip to content

Warn when managing rewrites with --skip-plugins or --skip-themes #3827

Description

@danielbachhuber

WordPress' rewrites API requires the rewrite rules to be registered in order to be saved to the database.

If you run wp rewrite flush with --skip-plugins or --skip-themes, you can inadvertently miss saving rewrites registered in plugins or themes.

To help the user realize their mistake, we should provide a warning when they use wp rewrite * with --skip-plugins or --skip-themes to alert them to the fact that some rewrite rules may be missing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions