Ticket #19470: 19470.2.patch
File 19470.2.patch, 1.4 KB (added by , 13 years ago) |
---|
-
user-new.php
100 100 } else { 101 101 if ( current_user_can('edit_users') ) { 102 102 $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true)); 103 $redirect = 'users.php?u sersearch='. urlencode($new_user_login) . '&update=add' . '#user-' . $user_id;103 $redirect = 'users.php?update=add&user=' . $user_id; 104 104 } else { 105 105 $redirect = add_query_arg( 'update', 'add', 'user-new.php' ); 106 106 } -
users.php
349 349 $messages[] = '<div id="message" class="updated"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>'; 350 350 break; 351 351 case 'add': 352 $messages[] = '<div id="message" class="updated"><p>' . __('New user created.') . ' </p></div>';352 $messages[] = '<div id="message" class="updated"><p>' . __('New user created.') . ' <a href="' . esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), "user-edit.php?user_id=" . $_GET['user'] ) ) . '">' . __('Edit User') . '</a></p></div>'; 353 353 break; 354 354 case 'promote': 355 355 $messages[] = '<div id="message" class="updated"><p>' . __('Changed roles.') . '</p></div>';