chnm / anthologize

Anthologize is a free, open-source, WordPress-based platform for publishing. Grab posts from your WordPress blog, pull in feeds from external sites, or create new content directly in Anthologize. Then outline, order, and edit your work, crafting it into a coherent volume for export in several formats, including PDF, EPUB, and TEI.
http://anthologize.org
GNU General Public License v3.0
174 stars 28 forks source link

Unwanted filters get applied #46

Open patrickmj opened 13 years ago

patrickmj commented 13 years ago

See http://groups.google.com/group/anthologize-users/browse_thread/thread/11e7cd75080669da And #43

boonebgorges commented 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.

patrickmj commented 13 years ago

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.

boonebgorges commented 13 years ago

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