Skip to content

Commit

Permalink
fix getLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-barbato committed Jul 11, 2024
1 parent a03b9d0 commit 2e075e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2e075e5

Please sign in to comment.