- Timestamp:
- 01/12/2024 07:11:34 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/template-parts/pagination.php
r55988 r57276 38 38 39 39 // If we're not outputting the previous page link, prepend a placeholder with `visibility: hidden` to take its place. 40 if ( ! str_contains( $posts_pagination, 'prev page-numbers' ) ) {40 if ( false === strpos( $posts_pagination, 'prev page-numbers' ) ) { 41 41 $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 ); 42 42 } 43 43 44 44 // If we're not outputting the next page link, append a placeholder with `visibility: hidden` to take its place. 45 if ( ! str_contains( $posts_pagination, 'next page-numbers' ) ) {45 if ( false === strpos( $posts_pagination, 'next page-numbers' ) ) { 46 46 $posts_pagination = str_replace( '</div>', '<span class="next page-numbers placeholder" aria-hidden="true">' . $next_text . '</span></div>', $posts_pagination ); 47 47 }
Note: See TracChangeset
for help on using the changeset viewer.