Tidy author.php: escape output, fix author name lookup
This commit is contained in:
1 parent
0f873abeb7
commit
9b29d3d672
1 file changed
+4
-4
+4
-4
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
|
|
||||||
$author = get_the_author_meta("display_name", get_the_author_meta("ID"));
|
printf(
|
||||||
printf("<h2 class=\"entry-title search\">" . __("Forfatter: ", "textdomain") . $author . "</h2>\n");
|
'<h2 class="entry-title search">%s</h2>',
|
||||||
|
esc_html(sprintf(__("Forfatter: %s", "super-simple-wp-theme"), get_queried_object()->display_name))
|
||||||
|
);
|
||||||
|
|
||||||
if (have_posts()) :
|
if (have_posts()) :
|
||||||
while (have_posts()) : the_post();
|
while (have_posts()) : the_post();
|
||||||
@@ -20,5 +22,3 @@ if (have_posts()) :
|
|||||||
endif;
|
endif;
|
||||||
|
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|
||||||
?>
|
|
||||||
Reference in new issue
Block a user