| @@ -9,12 +9,13 @@ | ||
| 9 | 9 | declare(strict_types=1); |
| 10 | 10 | |
| 11 | 11 | namespace Parsely\Metadata; |
| 12 | 12 | |
| 13 | -use Parsely\Utils\Utils; | |
| 14 | 13 | use WP_User; |
| 15 | 14 | use stdClass; |
| 16 | 15 | |
| 16 | +use function Parsely\Utils\get_string_query_var; | |
| 17 | + | |
| 17 | 18 | /** |
| 18 | 19 | * Implements abstract Metadata Builder class to generate the metadata array |
| 19 | 20 | * for an author archive page. |
| 20 | 21 | * |
| @@ -44,9 +45,9 @@ | ||
| 44 | 45 | * @since 3.4.0 |
| 45 | 46 | */ |
| 46 | 47 | private function build_headline(): void { |
| 47 | 48 | // Use the author's username as a display name fallback. |
| 48 | - $author_username = Utils::get_string_query_var( 'author_name' ); | |
| 49 | + $author_username = get_string_query_var( 'author_name' ); | |
| 49 | 50 | $author_display_name = $author_username; |
| 50 | 51 | |
| 51 | 52 | // Attempt to get the author from the Co-Authors Plus plugin or from |
| 52 | 53 | // WordPress core if this fails. |