-
-
Save boogah/04056d3abafa8e156daf to your computer and use it in GitHub Desktop.
Deactivate Force Strong Passwords for WP Engine customers by dropping this file into mu-plugins.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: No FSP | |
Description: Deactivate Force Strong Passwords | |
Version: 0.1 | |
Author: WP Engine | |
Author URI: http://wpengine.com/ | |
License: GPLv2 | |
*/ | |
add_action('init', function() { | |
remove_action( 'admin_enqueue_scripts', 'slt_fsp_enqueue_force_zxcvbn_script' ); | |
remove_action( 'login_enqueue_scripts', 'slt_fsp_enqueue_force_zxcvbn_script' ); | |
remove_action( 'user_profile_update_errors', 'slt_fsp_validate_profile_update', 0, 3 ); | |
remove_action( 'validate_password_reset', 'slt_fsp_validate_strong_password', 10, 2 ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment