PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/component/class-strong-password.php +2 -2 6.2.3 → 6.3.0 View file →
@@ -309,14 +309,14 @@
309 309 /**
310 310 * Generate a strong password with a mix of character types.
311 311 *
312 312 * @param string $password The password to be generated.
313 - * @param int $length The length of the password to be generated (12 or 24).
313 + * @param int $length The length of the password to be generated (12).
314 314 *
315 315 * @return string Strong password.
316 316 */
317 317 public function generate_password( $password, $length ) {
318 - if ( ! in_array( $length, array( 12, 24 ), true ) ) {
318 + if ( 12 !== $length ) {
319 319 return $password;
320 320 }
321 321
322 322 $upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';