Tidy author.php: escape output, fix author name lookup

This commit is contained in:
ai-bot committed 2026-10-14 09:05:38 +00:00
1 parent 0f873abeb7
commit 9b29d3d672
1 file changed
+24 -24
+24 -24
View File
@@ -1,24 +1,24 @@
<?php <?php
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()) : );
while (have_posts()) : the_post();
?> if (have_posts()) :
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> while (have_posts()) : the_post();
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> ?>
<div class="entry-content"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div> <div class="entry-content">
</article> <?php the_content(); ?>
<?php </div>
</article>
endwhile; <?php
endif;
endwhile;
get_footer(); endif;
?> get_footer();