summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'themes/twentyfifteen/search.php')
-rw-r--r--themes/twentyfifteen/search.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/themes/twentyfifteen/search.php b/themes/twentyfifteen/search.php
index 174c9f6f..33528415 100644
--- a/themes/twentyfifteen/search.php
+++ b/themes/twentyfifteen/search.php
@@ -20,9 +20,7 @@ get_header(); ?>
<?php
// Start the loop.
- while ( have_posts() ) :
- the_post();
- ?>
+ while ( have_posts() ) : the_post(); ?>
<?php
/*
@@ -32,19 +30,17 @@ get_header(); ?>
*/
get_template_part( 'content', 'search' );
- // End the loop.
+ // End the loop.
endwhile;
// Previous/next page navigation.
- the_posts_pagination(
- array(
- 'prev_text' => __( 'Previous page', 'twentyfifteen' ),
- 'next_text' => __( 'Next page', 'twentyfifteen' ),
- 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
- )
- );
-
- // If no content, include the "No posts found" template.
+ the_posts_pagination( array(
+ 'prev_text' => __( 'Previous page', 'twentyfifteen' ),
+ 'next_text' => __( 'Next page', 'twentyfifteen' ),
+ 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
+ ) );
+
+ // If no content, include the "No posts found" template.
else :
get_template_part( 'content', 'none' );