Make WordPress Core

Ticket #35884: 35884.patch

File 35884.patch, 1.1 KB (added by ramiy, 10 years ago)
  • wp-admin/user-edit.php

     
    171171<?php } ?>
    172172<?php if ( isset($_GET['updated']) ) : ?>
    173173<div id="message" class="updated notice is-dismissible">
    174         <?php if ( IS_PROFILE_PAGE ) : ?>
    175         <p><strong><?php _e('Profile updated.') ?></strong></p>
    176         <?php else: ?>
    177         <p><strong><?php _e('User updated.') ?></strong></p>
    178         <?php endif; ?>
    179         <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
    180         <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
    181         <?php endif; ?>
     174        <p>
     175                <?php if ( IS_PROFILE_PAGE ) : ?>
     176                        <strong><?php _e('Profile updated.') ?></strong>
     177                <?php else: ?>
     178                        <strong><?php _e('User updated.') ?></strong>
     179                <?php endif; ?>
     180                <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
     181                        <a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('&larr; Back to Users'); ?></a>
     182                <?php endif; ?>
     183        </p>
    182184</div>
    183185<?php endif; ?>
    184186<?php if ( isset( $errors ) && is_wp_error( $errors ) ) : ?>