I don't think the bug is actually in filter.module itself. It's buried somewhere in the rendering process.
Steps to reproduce.
1) Call check_markup for a particular format (such as basic_html) with a null for $filter_types_to_skip
2) Examine the returned object and notice that the filters selected for that form have been applied
3) Change the call to now pass something in $filter_types_to_skip (such as array('filter_autop'))
4) Examine the returned object and notice that NONE of the filters selected for that format have been applied.
To look at it with code:
check_markup($text, $formatId, $langcode);
applies all the filters for the format
check_markup($text, $formatId, $langcode, array('filter_autop'));
doesn't apply any of the filters
check_markup($text, $formatId, $langcode, array(''));
doesn't apply any of the filters
Comments
Comment #2
vegantriathleteComment #3
vegantriathleteComment #11
quietone CreditAttribution: quietone at PreviousNext commentedI played with this on 9.4.x, using FilterAPITest, and was not able to reproduce this problem with the filters.
Therefore, closing as cannot reproduce. If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!