Tidy category.php: escape output, fix heading printf

This commit is contained in:
ai-bot committed 2026-10-14 09:05:34 +00:00
1 parent 8b93ca0602
commit 0f873abeb7
1 file changed
+24 -23
+24 -23
View File
@@ -1,23 +1,24 @@
<?php <?php
get_header(); get_header();
printf("<h2 class=\"entry-title search\">" . __("Kategori: ", "textdomain") . get_queried_object()->name . "</h2>"); printf(
'<h2 class="entry-title search">%s</h2>',
if (have_posts()) : esc_html(sprintf(__("Kategori: %s", "super-simple-wp-theme"), get_queried_object()->name))
while (have_posts()) : the_post(); );
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> if (have_posts()) :
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> while (have_posts()) : the_post();
<div class="entry-content"> ?>
<?php the_content(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
</div> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</article> <div class="entry-content">
<?php <?php the_content(); ?>
</div>
endwhile; </article>
endif; <?php
get_footer(); endwhile;
endif;
?>
get_footer();