commit 9900643aadeae5fdade6cf06625420282e728792 Author: Joel Pittet Date: Mon Mar 18 01:34:24 2013 -0700 let's get rid of those exceptions shall we diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index 2dea386..5345335 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -1008,7 +1008,7 @@ function filter_form_access_denied($element) { function template_preprocess_text_format_wrapper(&$variables) { $element = $variables['element']; $variables['children'] = $element['#children']; - if ($element['#description'] != '') { + if (!empty($element['#description'])) { $variables['description'] = $element['#description']; } } diff --git a/core/modules/filter/templates/filter-tips.html.twig b/core/modules/filter/templates/filter-tips.html.twig index 47323ab..367730a 100644 --- a/core/modules/filter/templates/filter-tips.html.twig +++ b/core/modules/filter/templates/filter-tips.html.twig @@ -35,7 +35,7 @@

{{ tip.name }}

{% endif %} - {% if tip.list|length > 0 %} + {% if tip.list|length %}