Changeset 55420 for trunk/src/wp-content/themes
- Timestamp:
- 02/24/2023 06:21:21 AM (2 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/comments.php
r51157 r55420 32 32 <h2 id="comments-title"> 33 33 <?php 34 if ( 1=== get_comments_number() ) {34 if ( '1' === get_comments_number() ) { 35 35 printf( 36 36 /* translators: %s: The post title. */ -
trunk/src/wp-content/themes/twentyeleven/functions.php
r54492 r55420 323 323 324 324 // If no custom options for text are set, let's bail. 325 if ( HEADER_TEXTCOLOR == $text_color ) {325 if ( HEADER_TEXTCOLOR === $text_color ) { 326 326 return; 327 327 } … … 387 387 <?php 388 388 // If the user has set a custom color for the text, use that. 389 if ( get_header_textcolor() != HEADER_TEXTCOLOR ) :389 if ( get_header_textcolor() !== HEADER_TEXTCOLOR ) : 390 390 ?> 391 391 #site-title a, … … 725 725 $avatar_size = 68; 726 726 727 if ( '0' != $comment->comment_parent ) {727 if ( '0' !== $comment->comment_parent ) { 728 728 $avatar_size = 39; 729 729 } … … 757 757 ?> 758 758 759 <?php if ( '0' == $comment->comment_approved ) : ?>759 <?php if ( '0' === $comment->comment_approved ) : ?> 760 760 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 761 761 <br /> -
trunk/src/wp-content/themes/twentyeleven/image.php
r49539 r55420 71 71 ); 72 72 foreach ( $attachments as $k => $attachment ) { 73 if ( $attachment->ID == $post->ID ) {73 if ( $attachment->ID === $post->ID ) { 74 74 break; 75 75 } -
trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php
r55414 r55420 447 447 448 448 // Don't do anything if the current link color is the default. 449 if ( $default_options['link_color'] == $link_color ) {449 if ( $default_options['link_color'] === $link_color ) { 450 450 return; 451 451 } -
trunk/src/wp-content/themes/twentyeleven/showcase.php
r54884 r55420 155 155 $featured->the_post(); 156 156 $counter_slider++; 157 if ( 1 == $counter_slider ) {157 if ( 1 === $counter_slider ) { 158 158 $class = ' class="active"'; 159 159 } else { -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r55413 r55420 472 472 if ( count( $attachment_ids ) > 1 ) { 473 473 foreach ( $attachment_ids as $idx => $attachment_id ) { 474 if ( $attachment_id == $post->ID ) {474 if ( $attachment_id === $post->ID ) { 475 475 $next_id = $attachment_ids[ ( $idx + 1 ) % count( $attachment_ids ) ]; 476 476 break; -
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r51541 r55420 83 83 <?php 84 84 // If the user has set a custom color for the text, use that. 85 elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :85 elseif ( get_theme_support( 'custom-header', 'default-text-color' ) !== $text_color ) : 86 86 ?> 87 87 .site-title a { -
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r48121 r55420 263 263 $settings = self::get_setting(); 264 264 265 if ( empty( $settings['tag-id'] ) || $tag_id != $settings['tag-id'] ) {265 if ( empty( $settings['tag-id'] ) || $tag_id !== $settings['tag-id'] ) { 266 266 return; 267 267 } -
trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r54885 r55420 37 37 $comment_author = get_comment_author( $comment ); 38 38 $avatar = get_avatar( $comment, $args['avatar_size'] ); 39 if ( 0 != $args['avatar_size'] ) {39 if ( 0 !== (int) $args['avatar_size'] ) { 40 40 if ( empty( $comment_author_url ) ) { 41 41 echo $avatar; … … 99 99 ?> 100 100 101 <?php if ( '0' == $comment->comment_approved ) : ?>101 <?php if ( '0' === $comment->comment_approved ) : ?> 102 102 <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> 103 103 <?php endif; ?> -
trunk/src/wp-content/themes/twentynineteen/comments.php
r52993 r55420 36 36 } 37 37 } else { 38 if ( '1' == $discussion->responses ) {38 if ( '1' === (string) $discussion->responses ) { 39 39 /* translators: %s: Post title. */ 40 40 printf( _x( 'One reply on “%s”', 'comments title', 'twentynineteen' ), get_the_title() ); -
trunk/src/wp-content/themes/twentyten/comments.php
r51157 r55420 35 35 <h3 id="comments-title"> 36 36 <?php 37 if ( 1=== get_comments_number() ) {37 if ( '1' === get_comments_number() ) { 38 38 printf( 39 39 /* translators: %s: The post title. */ -
trunk/src/wp-content/themes/twentyten/functions.php
r54492 r55420 440 440 ?> 441 441 442 <?php if ( '0' == $comment->comment_approved ) : ?>442 <?php if ( '0' === $comment->comment_approved ) : ?> 443 443 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 444 444 <br /> -
trunk/src/wp-content/themes/twentyten/loop-attachment.php
r54882 r55420 101 101 ); 102 102 foreach ( $attachments as $k => $attachment ) { 103 if ( $attachment->ID == $post->ID ) {103 if ( $attachment->ID === $post->ID ) { 104 104 break; 105 105 } -
trunk/src/wp-content/themes/twentythirteen/comments.php
r55276 r55420 24 24 <h2 class="comments-title"> 25 25 <?php 26 if ( 1=== get_comments_number() ) {26 if ( '1' === get_comments_number() ) { 27 27 printf( 28 28 /* translators: %s: The post title. */ -
trunk/src/wp-content/themes/twentythirteen/functions.php
r55413 r55420 653 653 if ( count( $attachment_ids ) > 1 ) { 654 654 foreach ( $attachment_ids as $idx => $attachment_id ) { 655 if ( $attachment_id == $post->ID ) {655 if ( $attachment_id === $post->ID ) { 656 656 $next_id = $attachment_ids[ ( $idx + 1 ) % count( $attachment_ids ) ]; 657 657 break; -
trunk/src/wp-content/themes/twentythirteen/image.php
r51967 r55420 31 31 $published_text = '<span class="attachment-meta">' . $published_text . '</span>'; 32 32 $post_title = get_the_title( $post->post_parent ); 33 if ( empty( $post_title ) || 0 == $post->post_parent ) {33 if ( empty( $post_title ) || 0 === $post->post_parent ) { 34 34 $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>'; 35 35 } -
trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php
r47219 r55420 91 91 92 92 // If no custom options for text are set, let's bail. 93 if ( empty( $header_image ) && get_theme_support( 'custom-header', 'default-text-color' ) == $text_color ) {93 if ( empty( $header_image ) && get_theme_support( 'custom-header', 'default-text-color' ) === $text_color ) { 94 94 return; 95 95 } … … 137 137 138 138 // If the user has set a custom color for the text, use that. 139 elseif ( get_theme_support( 'custom-header', 'default-text-color' ) != $text_color ) :139 elseif ( get_theme_support( 'custom-header', 'default-text-color' ) !== $text_color ) : 140 140 ?> 141 141 .site-title, -
trunk/src/wp-content/themes/twentytwelve/comments.php
r51967 r55420 30 30 <h2 class="comments-title"> 31 31 <?php 32 if ( 1=== get_comments_number() ) {32 if ( '1' === get_comments_number() ) { 33 33 printf( 34 34 /* translators: %s: The post title. */ -
trunk/src/wp-content/themes/twentytwelve/functions.php
r55277 r55420 462 462 ?> 463 463 464 <?php if ( '0' == $comment->comment_approved ) : ?>464 <?php if ( '0' === $comment->comment_approved ) : ?> 465 465 <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> 466 466 <?php endif; ?> -
trunk/src/wp-content/themes/twentytwelve/image.php
r51967 r55420 71 71 ); 72 72 foreach ( $attachments as $k => $attachment ) : 73 if ( $attachment->ID == $post->ID ) {73 if ( $attachment->ID === $post->ID ) { 74 74 break; 75 75 } -
trunk/src/wp-content/themes/twentytwelve/inc/custom-header.php
r47219 r55420 72 72 73 73 // If no custom options for text are set, let's bail. 74 if ( get_theme_support( 'custom-header', 'default-text-color' ) == $text_color ) {74 if ( get_theme_support( 'custom-header', 'default-text-color' ) === $text_color ) { 75 75 return; 76 76 } -
trunk/src/wp-content/themes/twentytwenty/comments.php
r47941 r55420 24 24 25 25 <?php 26 $comments_number = absint( get_comments_number());26 $comments_number = get_comments_number(); 27 27 ?> 28 28 … … 33 33 if ( ! have_comments() ) { 34 34 _e( 'Leave a comment', 'twentytwenty' ); 35 } elseif ( 1=== $comments_number ) {35 } elseif ( '1' === $comments_number ) { 36 36 /* translators: %s: Post title. */ 37 37 printf( _x( 'One reply on “%s”', 'comments title', 'twentytwenty' ), get_the_title() );
Note: See TracChangeset
for help on using the changeset viewer.