diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module
index bb9b748d1dd..09497740a3d 100644
--- a/core/modules/filter/filter.module
+++ b/core/modules/filter/filter.module
@@ -1022,7 +1022,11 @@ function theme_filter_guidelines($variables) {
$attributes['class'][] = 'filter-guidelines-' . $format->format;
$output = '
';
$output .= '
' . check_plain($format->name) . '
';
- $output .= theme('filter_tips', array('tips' => _filter_tips($format->format, FALSE)));
+ $filter_tips = array(
+ '#theme' => 'filter_tips',
+ '#tips' => _filter_tips($format->format, FALSE),
+ );
+ $output .= drupal_render($filter_tips);
$output .= '';
return $output;
}
@@ -1404,7 +1408,11 @@ function _filter_html_image_secure_process($text) {
}
}
// Replace an invalid image with an error indicator.
- theme('filter_html_image_secure_image', array('image' => $image));
+ $filter_html_image_secure_image = array(
+ '#theme' => 'filter_html_image_secure_image',
+ '#image' => $image,
+ );
+ drupal_render($filter_html_image_secure_image);
}
$text = filter_dom_serialize($html_dom);
return $text;
diff --git a/core/modules/filter/lib/Drupal/filter/Plugin/Filter/FilterHtml.php b/core/modules/filter/lib/Drupal/filter/Plugin/Filter/FilterHtml.php
index c939c2720ba..fe6237903bf 100644
--- a/core/modules/filter/lib/Drupal/filter/Plugin/Filter/FilterHtml.php
+++ b/core/modules/filter/lib/Drupal/filter/Plugin/Filter/FilterHtml.php
@@ -134,7 +134,12 @@ class FilterHtml extends FilterBase {
);
}
}
- $output .= theme('table', array('header' => $header, 'rows' => $rows));
+ $table = array(
+ '#theme' => 'table',
+ '#header' => $header,
+ '#rows' => $rows,
+ );
+ $output .= drupal_render($table);
$output .= '' . t('Most unusual characters can be directly entered without any problems.') . '
';
$output .= '' . t('If you do encounter problems, try using HTML character entities. A common example looks like & for an ampersand & character. For a full list of entities see HTML\'s entities page. Some of the available characters include:', array('@html-entities' => 'http://www.w3.org/TR/html4/sgml/entities.html')) . '
';
@@ -154,7 +159,12 @@ class FilterHtml extends FilterBase {
array('data' => $entity[1], 'class' => array('get'))
);
}
- $output .= theme('table', array('header' => $header, 'rows' => $rows));
+ $table = array(
+ '#theme' => 'table',
+ '#header' => $header,
+ '#rows' => $rows,
+ );
+ $output .= drupal_render($table);
return $output;
}