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