Making WordPress.org


Ignore:
Timestamp:
12/18/2017 05:42:35 PM (9 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/index.php

    r3193 r6284  
    1515namespace WordPressdotorg\Plugin_Directory\Theme;
    1616
    17 get_header(); ?>
     17get_header();
     18?>
    1819
    1920        <main id="main" class="site-main" role="main">
    2021
    2122        <?php
    22                 if ( have_posts() ) :
    23                         if ( is_home() && ! is_front_page() ) :
    24         ?>
     23        if ( have_posts() ) :
     24                if ( is_home() && ! is_front_page() ) :
     25                ?>
    2526                <header>
    2627                        <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
    2728                </header>
     29                <?php
     30                endif;
    2831
    29         <?php
    30                         endif;
     32                /* Start the Loop */
     33                while ( have_posts() ) :
     34                        the_post();
    3135
    32                         /* Start the Loop */
    33                         while ( have_posts() ) :
    34                                 the_post();
     36                        get_template_part( 'template-parts/plugin', 'index' );
     37                endwhile;
    3538
    36                                 get_template_part( 'template-parts/plugin', 'index' );
    37                         endwhile;
    38 
    39                         the_posts_pagination();
     39                the_posts_pagination();
    4040
    4141                else :
Note: See TracChangeset for help on using the changeset viewer.