Tidy category.php: escape output, fix heading printf
This commit is contained in:
1 parent
8b93ca0602
commit
0f873abeb7
1 file changed
+4
-3
+4
-3
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
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>',
|
||||||
|
esc_html(sprintf(__("Kategori: %s", "super-simple-wp-theme"), get_queried_object()->name))
|
||||||
|
);
|
||||||
|
|
||||||
if (have_posts()) :
|
if (have_posts()) :
|
||||||
while (have_posts()) : the_post();
|
while (have_posts()) : the_post();
|
||||||
@@ -19,5 +22,3 @@ if (have_posts()) :
|
|||||||
endif;
|
endif;
|
||||||
|
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|
||||||
?>
|
|
||||||
Reference in new issue
Block a user