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:
parent
c107d9ffed
commit
a4f3850205
@ -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('← Back to Users'); ?></a></p>
|
||||
<?php endif; ?>
|
||||
|
Loading…
Reference in New Issue
Block a user