Skip to content

Commit 9d1ae2b

Browse files
committed
Display password hint on additional screens
Show passwords hint on : - WordPress installation screen - new user screen - user profile screen
1 parent 429de7a commit 9d1ae2b

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
@@ -153,6 +153,7 @@ function display_setup_form( $error = null ) {
153153
<strong><?php _e( 'Important:' ); ?></strong>
154154
<?php /* translators: The non-breaking space prevents 1Password from thinking the text "log in" should trigger a password save prompt. */ ?>
155155
<?php _e( 'You will need this password to log&nbsp;in. Please store it in a secure location.' ); ?></span></p>
156+
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
156157
</td>
157158
</tr>
158159
<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="dashicons dashicons-no" aria-hidden="true"></span>
656656
<span class="text"><?php _e( 'Cancel' ); ?></span>
657657
</button>
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="dashicons dashicons-hidden" aria-hidden="true"></span>
579579
<span class="text"><?php _e( 'Hide' ); ?></span>
580580
</button>
581+
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
581582
</div>
582583
</td>
583584
</tr>

0 commit comments

Comments
 (0)