Automattic / babble

Multilingual WordPress done right.
https://wordpress.org/plugins/babble/
245 stars 50 forks source link

Simplify `Babble_Locale::get_request_string()` #282

Closed johnbillion closed 9 years ago

johnbillion commented 9 years ago

See #241.

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.