src/wp-admin/network/user-new.php 1 location
|
@@ 69-74 (lines=6) @@
|
66 |
|
$messages = array(); |
67 |
|
if ( 'added' == $_GET['update'] ) { |
68 |
|
$edit_link = ''; |
69 |
|
if ( isset( $_GET['user_id'] ) ) { |
70 |
|
$user_id_new = absint( $_GET['user_id'] ); |
71 |
|
if ( $user_id_new ) { |
72 |
|
$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_id_new ) ) ); |
73 |
|
} |
74 |
|
} |
75 |
|
|
76 |
|
if ( empty( $edit_link ) ) { |
77 |
|
$messages[] = __( 'User added.' ); |
src/wp-admin/user-new.php 1 location
|
@@ 239-244 (lines=6) @@
|
236 |
|
$messages = array(); |
237 |
|
if ( is_multisite() ) { |
238 |
|
$edit_link = ''; |
239 |
|
if ( ( isset( $_GET['user_id'] ) ) ) { |
240 |
|
$user_id_new = absint( $_GET['user_id'] ); |
241 |
|
if ( $user_id_new ) { |
242 |
|
$edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_id_new ) ) ); |
243 |
|
} |
244 |
|
} |
245 |
|
|
246 |
|
switch ( $_GET['update'] ) { |
247 |
|
case "newuserconfirmation": |