Skip to content

Commit

Permalink
Fix example code indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelittle committed Aug 22, 2023
1 parent d53e8de commit dd77d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/password-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ password strength score for administrators or for specific capabilities.
```php
add_filter( 'altis.security.passwords.is_weak', function ( bool $is_weak, string $password, WP_User $user, array $results ) {
if ( $user->has_cap( 'publish_newsletter' ) && ( $results['score'] < 4 ) ) {
return true;
return true;
}

return $is_weak;
Expand Down

0 comments on commit dd77d36

Please sign in to comment.