Skip to content

Commit 7e69d2a

Browse files
committed
Removes WC password meter script
…because who are you to say our passwords are weak?!?
1 parent 38ced7f commit 7e69d2a

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

woocommerce-dev-helper.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: A simple plugin for helping develop/debug WooCommerce & extensions
66
* Author: SkyVerge
77
* Author URI: http://www.skyverge.com
8-
* Version: 0.2.0
8+
* Version: 0.3.0
99
* Text Domain: woocommerce-dev-helper
1010
* Domain Path: /i18n/languages/
1111
*
@@ -54,6 +54,9 @@ public function __construct() {
5454

5555
// maybe log actions/filters
5656
add_action( 'shutdown', array( $this, 'maybe_log_hooks' ) );
57+
58+
// remove WC strong password script
59+
add_action( 'wp_print_scripts', array( $this, 'remove_wc_password_meter' ), 100 );
5760
}
5861

5962

@@ -66,6 +69,17 @@ public function __construct() {
6669
public function muzzle_woo_updater() {
6770
remove_action( 'admin_notices', 'woothemes_updater_notice' );
6871
}
72+
73+
74+
/**
75+
* Removes the strong password meter / requirement from WC 2.5+
76+
* because these are dev shop passwords, not vodka drinks -- we like them weak
77+
*
78+
* @since 0.3.0
79+
*/
80+
public function remove_wc_password_meter() {
81+
wp_dequeue_script( 'wc-password-strength-meter' );
82+
}
6983

7084

7185
/**

0 commit comments

Comments
 (0)