0620ac2076
git-svn-id: https://develop.svn.wordpress.org/trunk@4651 602fd350-edb4-49c9-b593-d223f7449a82
31 lines
524 B
PHP
31 lines
524 B
PHP
<?php
|
|
|
|
$parent_file = 'profile.php';
|
|
$submenu_file = 'profile.php';
|
|
require_once('admin.php');
|
|
|
|
check_admin_referer('update-profile_' . $user_ID);
|
|
|
|
if ( !$_POST )
|
|
wp_die( __('No post?') );
|
|
|
|
$errors = edit_user($user_ID);
|
|
|
|
if ( is_wp_error( $errors ) ) {
|
|
foreach( $errors->get_error_messages() as $message )
|
|
echo "$message<br />";
|
|
exit;
|
|
}
|
|
|
|
do_action('personal_options_update');
|
|
|
|
if ( 'profile' == $_POST['from'] )
|
|
$to = 'profile.php?updated=true';
|
|
else
|
|
$to = 'profile.php?updated=true';
|
|
|
|
wp_redirect( $to );
|
|
exit;
|
|
|
|
?>
|