2005-09-06 02:58:02 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('admin.php');
|
|
|
|
|
|
|
|
check_admin_referer();
|
|
|
|
|
2005-11-16 18:32:38 -05:00
|
|
|
if ( !$_POST )
|
|
|
|
die( __('No post?') );
|
|
|
|
|
2005-09-18 15:44:14 -04:00
|
|
|
$errors = edit_user($user_ID);
|
2005-09-06 02:58:02 -04:00
|
|
|
|
2005-09-13 20:03:02 -04:00
|
|
|
if (count($errors) != 0) {
|
|
|
|
foreach ($errors as $id => $error) {
|
|
|
|
echo $error . '<br/>';
|
|
|
|
}
|
|
|
|
exit;
|
2005-09-06 02:58:02 -04:00
|
|
|
}
|
|
|
|
|
2005-11-16 18:32:38 -05: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 02:58:02 -04:00
|
|
|
if ( 'profile' == $_POST['from'] )
|
|
|
|
$to = 'profile.php?updated=true';
|
|
|
|
else
|
|
|
|
$to = 'profile.php?updated=true';
|
|
|
|
|
|
|
|
wp_redirect( $to );
|
|
|
|
exit;
|
|
|
|
|
2005-09-05 23:08:09 -04:00
|
|
|
?>
|