PluginProbe
Parse.ly / 3.14.1
Parse.ly v3.14.1
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 3.20.3 All 105 releases
← All changes | src/Metadata/class-author-archive-builder.php +3 -2 3.19.33.14.1 View file →
@@ -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.