diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index 26a1c3d..cd8ffbc 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -553,6 +553,14 @@ public function processForm($form_id, &$form, &$form_state) {
       if (isset($form['#token']) && $form['#token'] === FALSE) {
         unset($form['#token']);
       }
+      // Form values for programmed form submissions typically do not include a
+      // value for the submit button, but without a triggering element, a
+      // potentially existing #limit_validation_errors property on the form
+      // submit button is not taken account. Therefore, automatically use the
+      // first button that was discovered in the form.
+      if ($form_state['programmed'] && !isset($form_state['triggering_element'])) {
+        $form_state['triggering_element'] = reset($form_state['buttons']);
+      }
       $this->validateForm($form_id, $form, $form_state);
 
       // drupal_html_id() maintains a cache of element IDs it has seen, so it
