Coding Standards: Update code layout in `default_password_nag()` for readability.
This aims to better match similar fragments in other core functions. Follow-up to [11162], [13844], [14170], [55682]. See #57839. Built from https://develop.svn.wordpress.org/trunk@55683 git-svn-id: http://core.svn.wordpress.org/trunk@55195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0192ff842c
commit
4f73468485
|
@ -525,15 +525,28 @@ function default_password_nag() {
|
|||
if ( 'profile.php' === $pagenow || ! get_user_option( 'default_password_nag' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo '<div class="error default-password-nag">';
|
||||
echo '<p>';
|
||||
echo '<strong>' . __( 'Notice:' ) . '</strong> ';
|
||||
_e( 'You’re using the auto-generated password for your account. Would you like to change it?' );
|
||||
echo '</p><p>';
|
||||
printf( '<a href="%s">' . __( 'Yes, take me to my profile page' ) . '</a> | ', esc_url( get_edit_profile_url() . '#password' ) );
|
||||
printf( '<a href="%s" id="default-password-nag-no">' . __( 'No thanks, do not remind me again' ) . '</a>', '?default_password_nag=0' );
|
||||
echo '</p></div>';
|
||||
?>
|
||||
<div class="error default-password-nag">
|
||||
<p>
|
||||
<strong><?php _e( 'Notice:' ); ?></strong>
|
||||
<?php _e( 'You’re using the auto-generated password for your account. Would you like to change it?' ); ?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
'<a href="%1$s">%2$s</a> | ',
|
||||
esc_url( get_edit_profile_url() . '#password' ),
|
||||
__( 'Yes, take me to my profile page' )
|
||||
);
|
||||
printf(
|
||||
'<a href="%1$s" id="default-password-nag-no">%2$s</a>',
|
||||
'?default_password_nag=0',
|
||||
__( 'No thanks, do not remind me again' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55682';
|
||||
$wp_version = '6.3-alpha-55683';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue