Compatability fix for WPML plugin.