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
+35 -24
+35 -24
View File
@@ -1,24 +1,35 @@
<?php <?php
/**
get_header(); * Author archive template.
*
$author = get_the_author_meta("display_name", get_the_author_meta("ID")); * @package Super_Simple_WP_Theme
printf("<h2 class=\"entry-title search\">" . __("Forfatter: ", "textdomain") . $author . "</h2>\n"); */
if (have_posts()) : get_header();
while (have_posts()) : the_post();
?> $sswt_author = get_the_author_meta( 'display_name', get_the_author_meta( 'ID' ) );
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> $sswt_heading = sprintf(
<div class="entry-content"> /* translators: %s: author display name. */
<?php the_content(); ?> __( 'Forfattar: %s', 'super-simple-wp-theme' ),
</div> $sswt_author
</article> );
<?php ?>
<h2 class="entry-title search"><?php echo esc_html( $sswt_heading ); ?></h2>
endwhile; <?php
endif;
if ( have_posts() ) :
get_footer(); 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>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
endif;
get_footer();