Closed imorland closed 3 years ago
I tested it, and it looks like the filter chain only applies when saving posts. This isn't good because it also means posts will keep the proxy URL when the extension is disabled. We might need to use parsing and/or unparsing...
I managed to make it work using the render
hook - it doesn't work during preview (post/edit) but it doesn't modify the saved XML content, which I think is the most important part. We can probably add some JS hook to change the URLs somewhere, though I don't think it's a big priority.
Let me know what you think about these commits.
Proxy images
is disabledtextformatter
filterChain does not work :(