get_error_messages() as $message ) echo "$message
"; exit; } if ( isset( $_POST['primary_blog'] ) ) { $primary_blog = (int) $_POST['primary_blog']; update_user_option( $current_user->id, 'primary_blog', $primary_blog, true ); } do_action('personal_options_update'); if ( 'profile' == $_POST['from'] ) $to = 'profile.php?updated=true'; else $to = 'profile.php?updated=true'; wp_redirect( $to ); exit; ?>