samiahmedsiddiqui / http-auth

Helps you to secure your whole site on the development time and admin pages from the Brute attack.
https://www.yasglobal.com/web-design-development/wordpress/http-auth/
GNU General Public License v3.0
7 stars 2 forks source link

Wp-CLI #1

Open smarques opened 5 years ago

smarques commented 5 years ago

When I activate the plugin wp-cli gets also blocked. I think CLI has its own validation system and should not be affected. Maybe we could use the WP_CLI variable to check if we are in cli mode?

see https://github.com/wp-cli/wp-cli/blob/71626710db27d5202e4df063c5b664fd5eb6615c/php/wp-cli.php#L3-6

-> define( 'WP_CLI', true );

samiahmedsiddiqui commented 5 years ago

Hi @smarques

Thanks for reaching out. I will surely make a fix in the next release.

Thanks, Sami