Unfortunately we can't just use $wp->request in Babble_Locale::get_request_string() because get_locale() is called before the request is parsed.
What we can do, though, is simplify its code by updating to the latest code from WP::parse_request(), and by removing support for sites that use pathinfo (URLs that contain /index.php/).
Branches from fix/rewrites (#279). Tests remain passing.
See #241.
Unfortunately we can't just use
$wp->request
inBabble_Locale::get_request_string()
becauseget_locale()
is called before the request is parsed.What we can do, though, is simplify its code by updating to the latest code from
WP::parse_request()
, and by removing support for sites that use pathinfo (URLs that contain/index.php/
).Branches from
fix/rewrites
(#279). Tests remain passing.