Update author.php for 2.0.0

- Keep the existing structure, the .entry-title.search heading and
  the_content().
- Escape the author name and use the super-simple-wp-theme text domain.
- Correct the visible label from the Bokmaal "Forfatter" to Nynorsk
  "Forfattar".
This commit is contained in:
ai-bot committed 2026-10-14 08:34:50 +00:00
1 parent 3912ecc7e2
commit 3d89f1fd4e
1 file changed
+17 -6
+17 -6
View File
@@ -1,12 +1,26 @@
<?php
/**
* Author archive template.
*
* @package Super_Simple_WP_Theme
*/
get_header();
$author = get_the_author_meta("display_name", get_the_author_meta("ID"));
printf("<h2 class=\"entry-title search\">" . __("Forfatter: ", "textdomain") . $author . "</h2>\n");
$sswt_author = get_the_author_meta( 'display_name', get_the_author_meta( 'ID' ) );
$sswt_heading = sprintf(
/* translators: %s: author display name. */
__( 'Forfattar: %s', 'super-simple-wp-theme' ),
$sswt_author
);
?>
<h2 class="entry-title search"><?php echo esc_html( $sswt_heading ); ?></h2>
<?php
if ( have_posts() ) :
while (have_posts()) : the_post();
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
@@ -15,10 +29,7 @@ if (have_posts()) :
</div>
</article>
<?php
endwhile;
endif;
get_footer();
?>