Filter module was required until we rightfully moved the filter_xss* functions from filter.module into common.inc.
In earlier versions of Drupal, some modules also used _filter_autop() to format their help texts. That is also no longer done.
Hence, we do not need to load filter.module during installation, updating, and also not for the maintenance theme page.
It still needs to be required = TRUE, because during normal site operation, other modules are using filter.module's constants and potentially check_markup(). Removing those special cases is one of my goals for D8 though.
Until then, we can remove this needless WTF.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal.filter-module-load.0.patch | 2.5 KB | sun |
Comments
Comment #1
sun#470632: Move filter_xss*() into common.inc
Comment #2
eojthebraveThis makes sense to me. No sense in loading a bunch of code you're not using. Marking RTBC since it is a very simple patch and the testing bot liked it.
Do we need to document that _filter_autop() is not available during install/update anymore?
Comment #3
dries commentedNice. Committed to CVS HEAD. Thanks.
Comment #5
sunFollow-up: #1934772: Filter module is not required, but is marked as required