Skip to content

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