Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/template-parts/pagination.php

    r46827 r47122  
    3535);
    3636
    37 // If we're not outputting the previous page link, prepend a placeholder with visibility: hidden to take its place.
     37// If we're not outputting the previous page link, prepend a placeholder with `visibility: hidden` to take its place.
    3838if ( strpos( $posts_pagination, 'prev page-numbers' ) === false ) {
    3939    $posts_pagination = str_replace( '<div class="nav-links">', '<div class="nav-links"><span class="prev page-numbers placeholder" aria-hidden="true">' . $prev_text . '</span>', $posts_pagination );
    4040}
    4141
    42 // If we're not outputting the next page link, append a placeholder with visibility: hidden to take its place.
     42// If we're not outputting the next page link, append a placeholder with `visibility: hidden` to take its place.
    4343if ( strpos( $posts_pagination, 'next page-numbers' ) === false ) {
    4444    $posts_pagination = str_replace( '</div>', '<span class="next page-numbers placeholder" aria-hidden="true">' . $next_text . '</span></div>', $posts_pagination );
     
    5151        <hr class="styled-separator pagination-separator is-style-wide" aria-hidden="true" />
    5252
    53         <?php echo $posts_pagination; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped during generation. ?>
     53        <?php echo $posts_pagination; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped during generation. ?>
    5454
    5555    </div><!-- .pagination-wrapper -->
Note: See TracChangeset for help on using the changeset viewer.