Index: modules/taxonomy/taxonomy.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.admin.inc,v
retrieving revision 1.55
diff -u -p -r1.55 taxonomy.admin.inc
--- modules/taxonomy/taxonomy.admin.inc	20 Jun 2009 18:32:04 -0000	1.55
+++ modules/taxonomy/taxonomy.admin.inc	27 Jun 2009 13:11:41 -0000
@@ -677,7 +677,8 @@ function taxonomy_form_term(&$form_state
     'description' => '',
     'vocabulary_machine_name' => $vocabulary->machine_name,
     'tid' => NULL,
-    'weight' => 0,
+    // Using empty string for simulating empty user input.
+    'weight' => "",
   );
 
   // Take into account multi-step rebuilding.
@@ -760,8 +761,8 @@ function taxonomy_form_term(&$form_state
     '#title' => t('Weight'),
     '#size' => 6,
     '#default_value' => $edit['weight'],
-    '#description' => t('Terms are displayed in ascending order by weight.'),
-    '#required' => TRUE);
+    '#description' => t('Terms are displayed in ascending order by weight. When left empty, the term will be appended to the end of the term list.'),
+    '#required' => FALSE);
   $form['vid'] = array(
     '#type' => 'value',
     '#value' => $vocabulary->vid);
@@ -793,8 +794,8 @@ function taxonomy_form_term_validate($fo
   field_attach_form_validate('taxonomy_term', (object) $form_state['values'], $form, $form_state);
 
   // Ensure numeric values.
-  if (isset($form_state['values']['weight']) && !is_numeric($form_state['values']['weight'])) {
-    form_set_error('weight', t('Weight value must be numeric.'));
+  if (isset($form_state['values']['weight']) && !(is_numeric($form_state['values']['weight']) || $form_state['values']['weight'] === "")) {
+    form_set_error('weight', t('Weight value must be numeric or left empty.'));
   }
 }
 
@@ -822,7 +823,10 @@ function taxonomy_form_term_submit($form
   }
 
   $term = taxonomy_form_term_submit_builder($form, $form_state);
-
+  // Unset weight, when no user input was made.
+  if ($term->weight === "") {
+    unset($term->weight);
+  }
   $status = taxonomy_term_save($term);
   switch ($status) {
     case SAVED_NEW:
Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.480
diff -u -p -r1.480 taxonomy.module
--- modules/taxonomy/taxonomy.module	22 Jun 2009 09:10:06 -0000	1.480
+++ modules/taxonomy/taxonomy.module	27 Jun 2009 13:11:42 -0000
@@ -391,6 +391,21 @@ function taxonomy_term_save($term) {
 
   field_attach_presave('taxonomy_term', $term);
 
+  // Term without weight is appended to the end by setting its weight to
+  // "maximum weight + 1".
+  if (!isset($term->weight)) {
+    // Fetch the max weight.
+    $max_weight = db_result(db_query("SELECT MAX(weight) FROM {taxonomy_term_data} WHERE vid = :vid", array(':vid' => $term->vid)));
+    // No terms available in vocabulary, set weight to 0.
+    if ($max_weight == NULL) {
+      $term->weight = 0;
+    }
+    // Terms available, set weight to max + 1.
+    else {
+      $term->weight = $max_weight + 1;
+    }
+  }
+
   if (!empty($term->tid) && $term->name) {
     $status = drupal_write_record('taxonomy_term_data', $term, 'tid');
     field_attach_update('taxonomy_term', $term);
