diff --git a/core/modules/edit/lib/Drupal/edit/EditController.php b/core/modules/edit/lib/Drupal/edit/EditController.php index ea9b1af107a..9ac62b4e169 100644 --- a/core/modules/edit/lib/Drupal/edit/EditController.php +++ b/core/modules/edit/lib/Drupal/edit/EditController.php @@ -132,7 +132,10 @@ class EditController extends ContainerAware { $errors = form_get_errors(); if (count($errors)) { - $response->addCommand(new FieldFormValidationErrorsCommand(theme('status_messages'))); + $status_messages = array( + '#theme' => 'status_messages' + ); + $response->addCommand(new FieldFormValidationErrorsCommand(drupal_render($status_messages))); } }