Skip to content
Snippets Groups Projects
Commit 6383dcc7 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#194994 by gpk: the PHP format was moved to php/0 instead of filter/2 and this...

#194994 by gpk: the PHP format was moved to php/0 instead of filter/2 and this was not updated in the node teaser building code
parent 5dcacebf
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -273,7 +273,7 @@ function node_teaser($body, $format = NULL, $size = NULL) {
// parse errors.
if (isset($format)) {
$filters = filter_list_format($format);
if (isset($filters['filter/1']) && strpos($body, '<?') !== FALSE) {
if (isset($filters['php/0']) && strpos($body, '<?') !== FALSE) {
return $body;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment