rocklobster-in / bogo

This is the development repository for Bogo, a straight-forward multilingual plugin for WordPress.
https://wordpress.org/plugins/bogo/
Other
23 stars 14 forks source link

Update language-functions.php #277

Closed fumikito closed 6 months ago

fumikito commented 1 year ago

Skip locale detection if URL is not set(e.g. CLI)

This will solve #276

takayukister commented 6 months ago

$_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'] are super global variables that are expected to be defined on an HTTP server. If they are not defined, that is a problem of the server implementation you use.