3 $parent_file = 'profile.php';
4 $submenu_file = 'profile.php';
5 require_once('admin.php');
7 check_admin_referer('update-profile_' . $user_ID);
10 wp_die( __('No post?') );
12 $errors = edit_user($user_ID);
14 if ( is_wp_error( $errors ) ) {
15 foreach( $errors->get_error_messages() as $message )
16 echo "$message<br />";
20 do_action('personal_options_update');
22 if ( 'profile' == $_POST['from'] )
23 $to = 'profile.php?updated=true';
25 $to = 'profile.php?updated=true';