From 602fcd32d8a94238553c8d14ba4378a84b2937f8 Mon Sep 17 00:00:00 2001 From: xxsimoxx Date: Mon, 17 Jun 2024 09:01:23 +0200 Subject: [PATCH] Fix traits in authors sitemap --- includes/modules/sitemap/settings/authors.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/modules/sitemap/settings/authors.php b/includes/modules/sitemap/settings/authors.php index 0877d81..c399d07 100644 --- a/includes/modules/sitemap/settings/authors.php +++ b/includes/modules/sitemap/settings/authors.php @@ -6,9 +6,8 @@ * @subpackage Classic_SEO\Sitemap */ -use Classic_SEO\Helpers\WordPress; +$roles = (new class { use Classic_SEO\Helpers\WordPress; })::get_roles(); -$roles = WordPress::get_roles(); $default = $roles; unset( $default['administrator'], $default['editor'], $default['author'] );