Changeset 57292
- Timestamp:
- 01/16/2024 04:07:50 PM (11 months ago)
- Location:
- branches/6.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/src/wp-content/themes/twentytwenty/comments.php
r55988 r57292 81 81 82 82 // If we're only showing the "Next" link, add a class indicating so. 83 if ( ! str_contains( $comment_pagination, 'prev page-numbers' ) ) {83 if ( false === strpos( $comment_pagination, 'prev page-numbers' ) ) { 84 84 $pagination_classes = ' only-next'; 85 85 } -
branches/6.4/src/wp-content/themes/twentytwenty/functions.php
r56783 r57292 324 324 325 325 // Add a style attribute with the height, or append the height to the style attribute if the style attribute already exists. 326 if ( ! str_contains( $html, ' style=' ) ) {326 if ( false === strpos( $html, ' style=' ) ) { 327 327 $search[] = '/(src=)/'; 328 328 $replace[] = "style=\"height: {$logo_height}px;\" src="; -
branches/6.4/src/wp-content/themes/twentytwenty/template-parts/pagination.php
r55988 r57292 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.