Skip to content

Commit ef6c931

Browse files
committed
Display password hint on additional screens
Show passwords hint on : - WordPress installation screen - new user screen - user profile screen
1 parent 002a3e3 commit ef6c931

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/wp-admin/install.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ function display_setup_form( $error = null ) {
151151
<strong><?php _e( 'Important:' ); ?></strong>
152152
<?php /* translators: The non-breaking space prevents 1Password from thinking the text "log in" should trigger a password save prompt. */ ?>
153153
<?php _e( 'You will need this password to log&nbsp;in. Please store it in a secure location.' ); ?></span></p>
154+
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
154155
</td>
155156
</tr>
156157
<tr class="form-field form-required user-pass2-wrap hide-if-js">

‎src/wp-admin/user-edit.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@
655655
<span class="text"><?php _e( 'Cancel' ); ?></span>
656656
</button>
657657
<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
658+
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
658659
</div>
659660
</td>
660661
</tr>

‎src/wp-admin/user-new.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@
578578
<span class="text"><?php _e( 'Hide' ); ?></span>
579579
</button>
580580
<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
581+
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
581582
</div>
582583
</td>
583584
</tr>

0 commit comments

Comments
 (0)