Skip to content

Flush all (from header menu) now flushes all WPML registered domains too #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

stefandoorn
Copy link

One of my clients was using this plugin but also had WPML activated and runs two domains on your servers: *.nl & *.de. Using the flush all button on top of the WP admin, only the *.nl got flushed due to the usage of home_url(). I changed things a bit to be able to use all WPML registered domains also in the flush all function.

I didn't adjust other functions yet, but clearly there are more places that could use this change as I see more usage of home_url(). Problem is that e.g. at Post Observer you also need to figure out which domain the post belongs to and use the correct URL for it to register. Option could be to implement at any flush all the registered domains ofcourse.

For now this is the fix that suits my client and I hope you can also use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant