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

git-svn-id: https://develop.svn.wordpress.org/trunk@19285 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-11-14 22:09:15 +00:00
parent c107d9ffed
commit a4f3850205
1 changed files with 4 additions and 0 deletions

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; ?>