- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/template-parts/pagination.php
r46827 r47122 35 35 ); 36 36 37 // If we're not outputting the previous page link, prepend a placeholder with visibility: hiddento take its place.37 // If we're not outputting the previous page link, prepend a placeholder with `visibility: hidden` to take its place. 38 38 if ( strpos( $posts_pagination, 'prev page-numbers' ) === false ) { 39 39 $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 ); 40 40 } 41 41 42 // If we're not outputting the next page link, append a placeholder with visibility: hiddento take its place.42 // If we're not outputting the next page link, append a placeholder with `visibility: hidden` to take its place. 43 43 if ( strpos( $posts_pagination, 'next page-numbers' ) === false ) { 44 44 $posts_pagination = str_replace( '</div>', '<span class="next page-numbers placeholder" aria-hidden="true">' . $next_text . '</span></div>', $posts_pagination ); … … 51 51 <hr class="styled-separator pagination-separator is-style-wide" aria-hidden="true" /> 52 52 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. ?> 54 54 55 55 </div><!-- .pagination-wrapper -->
Note: See TracChangeset
for help on using the changeset viewer.