Changeset 12050 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php
- Timestamp:
- 09/05/2022 05:14:31 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/search.php
r9325 r12050 23 23 </div> 24 24 25 < ?php get_search_form(); ?>25 <main id="main" class="site-main" role="main"> 26 26 27 <main id="main" class="site-main" role="main"> 27 <?php get_search_form() ?> 28 29 <div class="search-results-summary"><?php 30 $count = (int) $GLOBALS['wp_query']->found_posts; 31 32 if ( $count ) { 33 if ( is_paged() ) { 34 $start = get_query_var( 'posts_per_page' ) * ( get_query_var( 'paged' ) - 1 ); 35 } else { 36 $start = 0; 37 } 38 $end = min( $count, $start + get_query_var( 'posts_per_page' ) ); 39 printf( 40 _n( '<strong>%d</strong> result found for "<strong>%s</strong>".', '<strong>%d</strong> results found for "<strong>%s</strong>". Showing results %d to %d.', $count, 'wporg' ), 41 $count, 42 esc_html( get_search_query() ), 43 $start + 1, 44 $end 45 ); 46 } else { 47 printf( __( '<strong>%d</strong> results found for "<strong>%s</strong>".', 'wporg' ), $count, esc_html( get_search_query() ) ); 48 } 49 ?></div> 28 50 29 51 <?php if ( have_posts() ) : ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)