2005-09-06 08:58:02 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('admin.php');
|
|
|
|
|
2006-05-27 01:31:24 +02:00
|
|
|
check_admin_referer('update-profile_' . $user_ID);
|
2005-09-06 08:58:02 +02:00
|
|
|
|
2005-11-17 00:32:38 +01:00
|
|
|
if ( !$_POST )
|
|
|
|
die( __('No post?') );
|
|
|
|
|
2005-09-18 21:44:14 +02:00
|
|
|
$errors = edit_user($user_ID);
|
2005-09-06 08:58:02 +02:00
|
|
|
|
2005-09-14 02:03:02 +02:00
|
|
|
if (count($errors) != 0) {
|
|
|
|
foreach ($errors as $id => $error) {
|
|
|
|
echo $error . '<br/>';
|
|
|
|
}
|
|
|
|
exit;
|
2005-09-06 08:58:02 +02:00
|
|
|
}
|
|
|
|
|
2005-11-17 00:32:38 +01:00
|
|
|
if ( !isset( $_POST['rich_editing'] ) )
|
|
|
|
$_POST['rich_editing'] = 'false';
|
|
|
|
update_user_option( $current_user->id, 'rich_editing', $_POST['rich_editing'], true );
|
|
|
|
|
|
|
|
do_action('personal_options_update');
|
|
|
|
|
2005-09-06 08:58:02 +02:00
|
|
|
if ( 'profile' == $_POST['from'] )
|
|
|
|
$to = 'profile.php?updated=true';
|
|
|
|
else
|
|
|
|
$to = 'profile.php?updated=true';
|
|
|
|
|
|
|
|
wp_redirect( $to );
|
|
|
|
exit;
|
|
|
|
|
2005-09-06 05:08:09 +02:00
|
|
|
?>
|