{"push_id":909963061,"size":1,"distinct_size":1,"ref":"refs/heads/patch-1","head":"d90886d34b8e881f3d7a1bbc627b52a8eae3bdbf","before":"73613e5a144daa83ea8a55f38a5291d53e7b7890","commits":[{"sha":"d90886d34b8e881f3d7a1bbc627b52a8eae3bdbf","author":{"email":"4fe75b375c03ca8c8d8ee96a89193aab07927ccf@inbox.ru","name":"razik440"},"message":"Update qtranslate_core.php\n\nHello!\r\nIt's very simle fix.\r\nSituation:\r\nOption \"pre path mode\"\r\nOption \"hide language url for default language\" \r\nPlugin qtranslate-slug\r\nTwo language: en,de (en is default)\r\nOne page with different slug: for en - /buy/, for de - /kaufen/\r\n\r\nIf we open:\r\nsite.com/de/kaufen/ - it's work. qTranslate-x detect language and write value to cookie\r\n\r\nBut if we after than direct open link like this: site.com/buy/ we got 404 error, becouse qTranslate-x get cookie value (de) and redirect us to site.com/de/buy/\r\n\r\nThis fix is working for \"pre path mode\", and detect in \"wp-path\" language code. If \"preg_match\" return false - it's mean default language needed and set $lang default language.","distinct":true,"url":"https://api.github.com/repos/razik440/qtranslate-x/commits/d90886d34b8e881f3d7a1bbc627b52a8eae3bdbf"}]}