Changeset 55988 for trunk/src/wp-content/themes
- Timestamp:
- 06/22/2023 02:34:56 PM (18 months ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/inc/icon-functions.php
r51617 r55988 131 131 if ( 'social' === $args->theme_location ) { 132 132 foreach ( $social_icons as $attr => $value ) { 133 if ( false !== strpos( $item_output, $attr ) ) {133 if ( str_contains( $item_output, $attr ) ) { 134 134 $item_output = str_replace( $args->link_after, '</span>' . twentyseventeen_get_svg( array( 'icon' => esc_attr( $value ) ) ), $item_output ); 135 135 } -
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
r53308 r55988 47 47 48 48 // Only get audio from the content if a playlist isn't present. 49 if ( false === strpos( $content, 'wp-playlist-script' ) ) {49 if ( ! str_contains( $content, 'wp-playlist-script' ) ) { 50 50 $audio = get_media_embedded_in_content( $content, array( 'audio' ) ); 51 51 } -
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php
r53308 r55988 47 47 48 48 // Only get video from the content if a playlist isn't present. 49 if ( false === strpos( $content, 'wp-playlist-script' ) ) {49 if ( ! str_contains( $content, 'wp-playlist-script' ) ) { 50 50 $video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) ); 51 51 } -
trunk/src/wp-content/themes/twentytwenty/comments.php
r55420 r55988 81 81 82 82 // If we're only showing the "Next" link, add a class indicating so. 83 if ( false === strpos( $comment_pagination, 'prev page-numbers' ) ) {83 if ( ! str_contains( $comment_pagination, 'prev page-numbers' ) ) { 84 84 $pagination_classes = ' only-next'; 85 85 } -
trunk/src/wp-content/themes/twentytwenty/functions.php
r55929 r55988 317 317 318 318 // Add a style attribute with the height, or append the height to the style attribute if the style attribute already exists. 319 if ( strpos( $html, ' style=' ) === false) {319 if ( ! str_contains( $html, ' style=' ) ) { 320 320 $search[] = '/(src=)/'; 321 321 $replace[] = "style=\"height: {$logo_height}px;\" src="; -
trunk/src/wp-content/themes/twentytwenty/template-parts/pagination.php
r51322 r55988 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 ( strpos( $posts_pagination, 'prev page-numbers' ) === false) {40 if ( ! str_contains( $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 ( strpos( $posts_pagination, 'next page-numbers' ) === false) {45 if ( ! str_contains( $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 } -
trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php
r55095 r55988 446 446 } 447 447 448 if ( isset( $attr['class'] ) && false !== strpos( $attr['class'], 'custom-logo' ) ) {448 if ( isset( $attr['class'] ) && str_contains( $attr['class'], 'custom-logo' ) ) { 449 449 return $attr; 450 450 }
Note: See TracChangeset
for help on using the changeset viewer.