Show 'Profile updated' for profile.php. props johnbillion, fixes #19053.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-14 22:09:15 +00:00
parent 30ff37104d
commit 0f3e2f79bd

View File

@ -158,7 +158,11 @@ include (ABSPATH . 'wp-admin/admin-header.php');
<?php } ?>
<?php if ( isset($_GET['updated']) ) : ?>
<div id="message" class="updated">
<?php if ( IS_PROFILE_PAGE ) : ?>
<p><strong><?php _e('Profile updated.') ?></strong></p>
<?php else: ?>
<p><strong><?php _e('User updated.') ?></strong></p>
<?php endif; ?>
<?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
<p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
<?php endif; ?>