PluginProbe
Parse.ly / 3.24.2
Parse.ly v3.24.2
3.24.2 3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 All 106 releases
← All changes | src/Metadata/class-author-archive-builder.php +2 -3 3.16.3 → 3.24.2 View file →
@@ -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.