diff --git a/composer.json b/composer.json index ff96fe7..3a8b318 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name":"metabolism/wordpress-bundle", "type": "symfony-bundle", - "version": "2.3.2", + "version": "2.3.3", "description": "Build enterprise solutions with WordPress", "license": "MIT", "keywords": [ diff --git a/src/Entity/Blog.php b/src/Entity/Blog.php index 97d2450..8188827 100644 --- a/src/Entity/Blog.php +++ b/src/Entity/Blog.php @@ -178,7 +178,7 @@ public function setOption($key, $value){ public function getLanguage(): string { if( is_null($this->language) ) - $this->language = get_bloginfo('language'); + $this->language = str_replace('_', '-', get_locale()); return $this->language; }