Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Kristian,
While our team is here trying to assist, we are asking for some patience on the matter. These solutions can take some time to develop.
Our 2nd tier team has revised the code to remove the use of the double quotes to use single quotes.
/**
* Enforce the shop rewrite rule (to workaround an issue where it is mistakenly translated to butik)
*/
add_filter( 'product_rewrite_rules', 'ts_enforce_shop_rewrite' );
function ts_enforce_shop_rewrite( $rules ){
if ( is_array( $rules ) ){
$rules['shop/?$'] = 'index.php?post_type=product';
$rules['shop/page/([0-9]{1,})/?$'] = 'index.php?post_type=product&paged=$matches[1]';
}
return $rules;
}
If the above does not work then a full solution will need to be given from the development team. At this point I cannot say when they will be able to have a look at it as due process will need to be followed should it be needed.
What this means is that the tasks will need to be organised by severity and number of users experiencing the problem to prioritise accordingly.
Thanks,
Shane
Nope!
Since it's only happening when pressing F5 on Swedish pages, isn't related to WPML too? What do they say?
Nope!
Since it's only problems when reloading Swedish pages, what did WPML team say?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Kristian,
I've updated them with your test results and currently awaiting a response.
As mentioned this is an edge case scenario and items are organised based on priority, however as soon as there is an update I will let you know.
Thanks,
Shane