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:
Tony Volpe
2024-01-25 04:11:47 +00:00
parent 6b67473553
commit 68dbe860e9
540 changed files with 3445 additions and 2131 deletions

View File

@@ -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();