Open patrickmj opened 13 years ago
Patrick is quite right to point out that we cannot just remove all filters; it would cause more bug reports than it prevents.
Here's one idea (though it amounts to a pretty significant enhancement). On one step of the admin panel, we could run a little test export in the background (a loading of the tei dom, etc), and sniff out each filter that is getting applied to the content in the test run. Then we could present a list of these filters to the end user, and give them the opportunity to disable filters selectively in the actual output. Problems: This is pretty complicated to do; there are some filters that should never be removed (though we can get around this by creating a whitelist); there is likely to be a very large number of them, even after removing whitelisted filters; they are generally named in a pretty opaque way, with no obvious way to tell what they do.
Is there a way to list what filters have been added to 'the_content' by what plugins, like by looping through the global $wp_filter? If so, checkboxes to include or exclude that plugin's filter(s) might be simpler, and make the refactoring of TeiDom easier.
We can loop over $wpfilter to get the filter names, but there's no easy way to tell which plugin they belong to. (We can make educated guesses based on filter prefixes, like BuddyPress's bp, but that's pretty hit and miss.) On Aug 26, 2011 9:17 AM, "patrickmj" < reply@reply.github.com> wrote:
Is there a way to list what filters have been added to 'the_content' by what plugins, like by looping through the global $wp_filter? If so, checkboxes to include or exclude that plugin's filter(s) might be simpler, and make the refactoring of TeiDom easier.
Reply to this email directly or view it on GitHub: https://github.com/chnm/anthologize/issues/46#issuecomment-1912451
See http://groups.google.com/group/anthologize-users/browse_thread/thread/11e7cd75080669da And #43