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 78c8f4f commit 3dae1ee
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 3dae1ee

Please sign in to comment.