Some default password nag and user-edit div.error style cleanups.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d5f61d9db3
commit
e40572be40
|
@ -855,9 +855,9 @@ function 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 to something you’ll remember easier?');
|
||||
echo '<br /><br />';
|
||||
printf( '<a href="%s">'.__('Yes, take me to my profile page').'</a> | ', admin_url('profile.php') . '#password' );
|
||||
printf( '<a href="%s" id="default-password-nag-no">'.__('No thanks, do not remind me again').'</a>', '?default_password_nag=0' );
|
||||
echo '</p><p>';
|
||||
printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', admin_url('profile.php') . '#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>';
|
||||
}
|
||||
|
||||
|
|
|
@ -153,14 +153,7 @@ include ('admin-header.php');
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( isset( $errors ) && is_wp_error( $errors ) ) : ?>
|
||||
<div class="error">
|
||||
<ul>
|
||||
<?php
|
||||
foreach( $errors->get_error_messages() as $message )
|
||||
echo "<li>$message</li>";
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="error"><p><?php echo implode( "</p>\n<p>", $errors->get_error_messages() ); ?></p></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wrap" id="profile-page">
|
||||
|
|
Loading…
Reference in New Issue