Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -15,7 +15,7 @@ class WPSEO_Statistics_Service {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const CACHE_TRANSIENT_KEY = 'wpseo-statistics-totals';
|
||||
public const CACHE_TRANSIENT_KEY = 'wpseo-statistics-totals';
|
||||
|
||||
/**
|
||||
* Class that generates interesting statistics about things.
|
||||
@@ -47,7 +47,7 @@ class WPSEO_Statistics_Service {
|
||||
*/
|
||||
public function get_statistics() {
|
||||
// Switch to the user locale with fallback to the site locale.
|
||||
switch_to_locale( \get_user_locale() );
|
||||
switch_to_locale( get_user_locale() );
|
||||
|
||||
$this->labels = $this->labels();
|
||||
$statistics = $this->statistic_items();
|
||||
|
||||
Reference in New Issue
Block a user