Make WordPress Core


Ignore:
Timestamp:
07/30/2012 06:30:03 PM (12 years ago)
Author:
ryan
Message:

Introduce get_edit_user_link(). Props scribu, georgestephanis, johnbillion. fixes #14787 see #20307

File:
1 edited

Legend:

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

    r21204 r21364  
    140140
    141141if ( !is_wp_error( $errors ) ) {
    142     $redirect = (IS_PROFILE_PAGE ? "profile.php?" : "user-edit.php?user_id=$user_id&"). "updated=true";
     142    $redirect = add_query_arg( 'updated', true, get_edit_user_link( $user_id ) );
    143143    if ( $wp_http_referer )
    144144        $redirect = add_query_arg('wp_http_referer', urlencode($wp_http_referer), $redirect);
Note: See TracChangeset for help on using the changeset viewer.