WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/24/2016 09:42:02 PM (5 years ago)
Author:
jeremyfelt
Message:

Multisite: Provide an "Edit user" link after adding a new user

Props codex-m, jeremyfelt.
Fixes #35705.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r36679 r36695  
    5656);
    5757
    58 $wp_http_referer = remove_query_arg(array('update', 'delete_count'), $wp_http_referer );
     58$wp_http_referer = remove_query_arg( array( 'update', 'delete_count', 'user_id' ), $wp_http_referer );
    5959
    6060$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
     
    180180    <p><strong><?php _e('User updated.') ?></strong></p>
    181181    <?php endif; ?>
    182     <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
     182    <?php if ( $wp_http_referer && false === strpos( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) : ?>
    183183    <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
    184184    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.