igorhrcek / wp-cli-secure-command

Secure package for WP CLI, built to provide an easier way of securing your WordPress installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor existing command that are blocking PHP execution in various places

igorhrcek opened this issue · comments

Is your feature request related to a problem? Please describe.
There are a few commands that are doing the same thing (blocking PHP execution) on various paths and instead of having 4 separate commands, we might have one.

Describe the solution you'd like
Remove all existing block-php commands and replace it with only one that will accept arguments?

Describe alternatives you've considered
None

Additional context
For example, instead of:

wp secure block_php_exution_in_uploads

we should have:

wp secure blockphp --locations=uploads,themes,plugins,wp-includes

I'll take it.

🎉 This issue has been resolved in version 1.7.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀