WordPress.org

Making WordPress.org


Ignore:
Timestamp:
12/15/2017 12:13:33 AM (2 years ago)
Author:
obenland
Message:

Main: Conform to WPCS.

See #2861.

File:
1 edited

Legend:

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

    r5942 r6277  
    1010namespace WordPressdotorg\Theme;
    1111
    12 get_header( 'page' ); ?>
     12get_header();
     13?>
    1314
    1415    <main id="main" class="site-main col-8" role="main">
    1516
    1617        <?php
    17             while ( have_posts() ) :
    18                 the_post();
     18        while ( have_posts() ) :
     19            the_post();
    1920
    20                 get_template_part( 'template-parts/content', 'single' );
     21            get_template_part( 'template-parts/content', 'single' );
    2122
    22                 // If comments are open or we have at least one comment, load up the comment template.
    23                 if ( comments_open() || get_comments_number() ) :
    24                     comments_template();
    25                 endif;
     23            // If comments are open or we have at least one comment, load up the comment template.
     24            if ( comments_open() || get_comments_number() ) :
     25                comments_template();
     26            endif;
    2627
    27                 // Previous/next post navigation.
    28                 the_post_navigation( array(
    29                     'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'wporg' ) . '</span> ' .
    30                                    '<span class="screen-reader-text">' . __( 'Next post:', 'wporg' ) . '</span> ' .
    31                                    '<span class="post-title">%title</span>',
    32                     'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'wporg' ) . '</span> ' .
    33                                    '<span class="screen-reader-text">' . __( 'Previous post:', 'wporg' ) . '</span> ' .
    34                                    '<span class="post-title">%title</span>',
    35                 ) );
     28            // Previous/next post navigation.
     29            the_post_navigation( [
     30                // phpcs:disable WordPress.WhiteSpace.PrecisionAlignment.Found
     31                'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'wporg' ) . '</span> ' .
     32                               '<span class="screen-reader-text">' . __( 'Next post:', 'wporg' ) . '</span> ' .
     33                               '<span class="post-title">%title</span>',
     34                'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'wporg' ) . '</span> ' .
     35                               '<span class="screen-reader-text">' . __( 'Previous post:', 'wporg' ) . '</span> ' .
     36                               '<span class="post-title">%title</span>',
     37                // phpcs:enable WordPress.WhiteSpace.PrecisionAlignment.Found
     38            ] );
    3639            endwhile; // End of the loop.
    3740        ?>
Note: See TracChangeset for help on using the changeset viewer.