$error) { echo $error . '
'; } exit; } if ( 'profile' == $_POST['from'] ) $to = 'profile.php?updated=true'; else $to = 'profile.php?updated=true'; wp_redirect( $to ); exit; ?>