mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55683 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c2bd49c91f
commit
bfdb1adc6a
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user