diff --git a/core/modules/filter/src/Element/ProcessedText.php b/core/modules/filter/src/Element/ProcessedText.php index 750a6fc..767976a 100644 --- a/core/modules/filter/src/Element/ProcessedText.php +++ b/core/modules/filter/src/Element/ProcessedText.php @@ -80,7 +80,7 @@ public static function preRenderText($element) { } // If the requested text format does not exist, the text cannot be filtered. /** @var \Drupal\filter\Entity\FilterFormat $format **/ - if (!$format = FilterFormat::load($format_id)) { + if (!($format = FilterFormat::load($format_id)) || !$format->get('status')) { static::logger('filter')->alert('Missing text format: %format.', array('%format' => $format_id)); $element['#markup'] = ''; return $element;