diff --git a/core/includes/common.inc b/core/includes/common.inc index d9353d0..356a140 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -17,7 +17,6 @@ use Drupal\Component\Utility\String; use Drupal\Component\Utility\Tags; use Drupal\Component\Utility\UrlHelper; -use Drupal\Component\Utility\Xss; use Drupal\Core\Cache\Cache; use Drupal\Core\Language\Language; use Drupal\Core\Site\Settings; diff --git a/core/includes/errors.inc b/core/includes/errors.inc index 05937ff..8b0b9e4 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -63,10 +63,6 @@ function _drupal_error_handler_real($error_level, $message, $filename, $line, $c $backtrace = debug_backtrace(); $caller = Error::getLastCaller($backtrace); - if (!function_exists('filter_xss_admin')) { - require_once __DIR__ . '/common.inc'; - } - // We treat recoverable errors as fatal. _drupal_log_error(array( '%type' => isset($types[$error_level]) ? $severity_msg : 'Unknown error',