WPML issue
-
The plugin registers it’s wpml endpoint in wpml in a way that switches the current locale to
my-wish-list
This is due to the call to get_endpoint_translation, the second argument should be the locale, but instead the endpoint is passed
$query_vars[ self::$endpoint ] = $obj->get_endpoint_translation( self::$endpoint, isset( $wc_vars[ self::$endpoint ] ) ? $wc_vars[ self::$endpoint ] : self::$endpoint );
Should become
$query_vars[ self::$endpoint ] = $obj->get_endpoint_translation( self::$endpoint );
Edit: NVM this seems to be more of a WPML issue directly https://wpml.org/forums/topic/wcml_register_endpoints_query_vars-registration-switches-locale/
The topic ‘WPML issue’ is closed to new replies.