Making WordPress.org


Ignore:
Timestamp:
12/18/2017 05:42:35 PM (7 years ago)
Author:
obenland
Message:

Plugins: Conform to WPCS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/search.php

    r4223 r6284  
    1313    <main id="main" class="site-main" role="main">
    1414
    15         <?php
    16             if ( have_posts() ) : ?>
     15        <?php if ( have_posts() ) : ?>
    1716
    18                 <header class="page-header">
    19                     <h1 class="page-title"><?php printf( esc_html__( 'Showing results for: %s', 'wporg-plugins' ), '<strong>' . get_search_query() . '</strong>' ); ?></h1>
    20                 </header><!-- .page-header -->
     17            <header class="page-header">
     18                <h1 class="page-title">
     19                    <?php
     20                    printf(
     21                        /* translators: Search query. */
     22                        esc_html__( 'Showing results for: %s', 'wporg-plugins' ),
     23                        '<strong>' . get_search_query() . '</strong>'
     24                    );
     25                    ?>
     26                </h1>
     27            </header><!-- .page-header -->
    2128
    22                 <?php
    23                 /* Start the Loop */
    24                 while ( have_posts() ) :
    25                     the_post();
     29            <?php
     30            /* Start the Loop */
     31            while ( have_posts() ) :
     32                the_post();
    2633
    27                     get_template_part( 'template-parts/plugin', 'index' );
    28                 endwhile;
     34                get_template_part( 'template-parts/plugin', 'index' );
     35            endwhile;
    2936
    30                 the_posts_pagination();
     37            the_posts_pagination();
    3138
    32             else :
    33                 get_template_part( 'template-parts/content', 'none' );
    34             endif;
     39        else :
     40            get_template_part( 'template-parts/content', 'none' );
     41        endif;
    3542        ?>
    3643
Note: See TracChangeset for help on using the changeset viewer.