-
diff --git a/src/wp-content/themes/twentyeleven/functions.php b/src/wp-content/themes/twentyeleven/functions.php
index a26db9eba9..e34e357fd0 100644
a
|
b
|
if ( ! function_exists( 'twentyeleven_header_style' ) ) : |
322 | 322 | $text_color = get_header_textcolor(); |
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 | } |
328 | 328 | |
… |
… |
if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) : |
386 | 386 | } |
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, |
392 | 392 | #site-description { |
… |
… |
if ( ! function_exists( 'twentyeleven_comment' ) ) : |
724 | 724 | <?php |
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 | } |
730 | 730 | |
… |
… |
if ( ! function_exists( 'twentyeleven_comment' ) ) : |
756 | 756 | } |
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 /> |
762 | 762 | <?php endif; ?> |
-
diff --git a/src/wp-content/themes/twentyeleven/image.php b/src/wp-content/themes/twentyeleven/image.php
index 097ff19cc3..a727ea147a 100644
a
|
b
|
get_header(); ?> |
70 | 70 | ) |
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 | } |
76 | 76 | } |
-
diff --git a/src/wp-content/themes/twentyeleven/inc/block-patterns.php b/src/wp-content/themes/twentyeleven/inc/block-patterns.php
index a1f7920fa9..f7513d47f9 100644
a
|
b
|
|
10 | 10 | * @since Twenty Eleven 1.0 |
11 | 11 | */ |
12 | 12 | |
13 | | /** |
| 13 | /** |
14 | 14 | * Register Block Pattern Category. |
15 | 15 | */ |
16 | 16 | if ( function_exists( 'register_block_pattern_category' ) ) { |
-
diff --git a/src/wp-content/themes/twentyeleven/inc/theme-options.php b/src/wp-content/themes/twentyeleven/inc/theme-options.php
index 78be3b5aad..a1addb5359 100644
a
|
b
|
function twentyeleven_print_link_color_style() { |
447 | 447 | $default_options = twentyeleven_get_default_theme_options(); |
448 | 448 | |
449 | 449 | // Don't do anything if the current link color is the default. |
450 | | if ( $default_options['link_color'] == $link_color ) { |
| 450 | if ( $default_options['link_color'] === $link_color ) { |
451 | 451 | return; |
452 | 452 | } |
453 | 453 | ?> |
-
diff --git a/src/wp-content/themes/twentyeleven/showcase.php b/src/wp-content/themes/twentyeleven/showcase.php
index 041054b8ae..9f330df90b 100644
a
|
b
|
get_header(); ?> |
154 | 154 | while ( $featured->have_posts() ) : |
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 { |
160 | 160 | $class = ''; |
-
diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php
index bf8655a73f..a09bb6b445 100644
a
|
b
|
add_action( 'after_setup_theme', 'twentyfifteen_custom_header_setup' ); |
58 | 58 | function twentyfifteen_hex2rgb( $color ) { |
59 | 59 | $color = trim( $color, '#' ); |
60 | 60 | |
61 | | if ( strlen( $color ) == 3 ) { |
| 61 | if ( strlen( $color ) === 3 ) { |
62 | 62 | $r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) ); |
63 | 63 | $g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) ); |
64 | 64 | $b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) ); |
65 | | } elseif ( strlen( $color ) == 6 ) { |
| 65 | } elseif ( strlen( $color ) === 6 ) { |
66 | 66 | $r = hexdec( substr( $color, 0, 2 ) ); |
67 | 67 | $g = hexdec( substr( $color, 2, 2 ) ); |
68 | 68 | $b = hexdec( substr( $color, 4, 2 ) ); |
-
diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php
index f39296b1ba..9d63002cfb 100644
a
|
b
|
if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) : |
461 | 461 | // If there is more than 1 attachment in a gallery... |
462 | 462 | if ( count( $attachment_ids ) > 1 ) { |
463 | 463 | foreach ( $attachment_ids as $idx => $attachment_id ) { |
464 | | if ( $attachment_id == $post->ID ) { |
| 464 | if ( $attachment_id === $post->ID ) { |
465 | 465 | $next_id = $attachment_ids[ ( $idx + 1 ) % count( $attachment_ids ) ]; |
466 | 466 | break; |
467 | 467 | } |
-
diff --git a/src/wp-content/themes/twentyfourteen/inc/block-patterns.php b/src/wp-content/themes/twentyfourteen/inc/block-patterns.php
index 13232e77da..5d653007e5 100644
a
|
b
|
|
10 | 10 | * @since Twenty Fourteen 3.2 |
11 | 11 | */ |
12 | 12 | |
13 | | /** |
| 13 | /** |
14 | 14 | * Register Block Pattern Category. |
15 | 15 | */ |
16 | 16 | if ( function_exists( 'register_block_pattern_category' ) ) { |
-
diff --git a/src/wp-content/themes/twentyfourteen/inc/custom-header.php b/src/wp-content/themes/twentyfourteen/inc/custom-header.php
index 7fb590db7d..aaef31b51d 100644
a
|
b
|
if ( ! function_exists( 'twentyfourteen_header_style' ) ) : |
82 | 82 | } |
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 { |
88 | 88 | color: #<?php echo esc_attr( $text_color ); ?>; |
-
diff --git a/src/wp-content/themes/twentyfourteen/inc/featured-content.php b/src/wp-content/themes/twentyfourteen/inc/featured-content.php
index da8b76f715..ed7c661c42 100644
a
|
b
|
class Featured_Content { |
262 | 262 | public static function delete_post_tag( $tag_id ) { |
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 | } |
268 | 268 | |
-
diff --git a/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php b/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
index 3e02cf542f..13308c013c 100644
a
|
b
|
class TwentyNineteen_Walker_Comment extends Walker_Comment { |
36 | 36 | $comment_author_url = get_comment_author_url( $comment ); |
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 !== $args['avatar_size'] ) { |
40 | 40 | if ( empty( $comment_author_url ) ) { |
41 | 41 | echo $avatar; |
42 | 42 | } else { |
… |
… |
class TwentyNineteen_Walker_Comment extends Walker_Comment { |
99 | 99 | } |
100 | 100 | ?> |
101 | 101 | |
102 | | <?php if ( '0' == $comment->comment_approved ) : ?> |
| 102 | <?php if ( '0' === $comment->comment_approved ) : ?> |
103 | 103 | <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> |
104 | 104 | <?php endif; ?> |
105 | 105 | |
-
diff --git a/src/wp-content/themes/twentynineteen/comments.php b/src/wp-content/themes/twentynineteen/comments.php
index d00ac46118..f36c963ffd 100644
a
|
b
|
$discussion = twentynineteen_get_discussion_data(); |
35 | 35 | _e( 'Leave a comment', 'twentynineteen' ); |
36 | 36 | } |
37 | 37 | } else { |
38 | | if ( '1' == $discussion->responses ) { |
| 38 | if ( '1' === $discussion->responses ) { |
39 | 39 | /* translators: %s: Post title. */ |
40 | 40 | printf( _x( 'One reply on “%s”', 'comments title', 'twentynineteen' ), get_the_title() ); |
41 | 41 | } else { |
-
diff --git a/src/wp-content/themes/twentyten/functions.php b/src/wp-content/themes/twentyten/functions.php
index efa7e5f8f9..b5797b6a05 100644
a
|
b
|
if ( ! function_exists( 'twentyten_comment' ) ) : |
439 | 439 | } |
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 /> |
445 | 445 | <?php endif; ?> |
-
diff --git a/src/wp-content/themes/twentyten/loop-attachment.php b/src/wp-content/themes/twentyten/loop-attachment.php
index 50622f768d..05eab25097 100644
a
|
b
|
if ( have_posts() ) { |
100 | 100 | ) |
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 | } |
106 | 106 | } |
-
diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php
index 52af8a05cb..0c71361734 100644
a
|
b
|
if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : |
594 | 594 | // If there is more than 1 attachment in a gallery... |
595 | 595 | if ( count( $attachment_ids ) > 1 ) { |
596 | 596 | foreach ( $attachment_ids as $idx => $attachment_id ) { |
597 | | if ( $attachment_id == $post->ID ) { |
| 597 | if ( $attachment_id === $post->ID ) { |
598 | 598 | $next_id = $attachment_ids[ ( $idx + 1 ) % count( $attachment_ids ) ]; |
599 | 599 | break; |
600 | 600 | } |
-
diff --git a/src/wp-content/themes/twentythirteen/image.php b/src/wp-content/themes/twentythirteen/image.php
index 7372018cb6..3b9c974c51 100644
a
|
b
|
get_header(); ?> |
29 | 29 | /* translators: 1: Date, 2: Date, 3, Parent permalink, 4, Post title, 5: Post title. */ |
30 | 30 | $published_text = __( '<span class="attachment-meta">Published on <time class="entry-date" datetime="%1$s">%2$s</time> in <a href="%3$s" title="Go to %4$s" rel="gallery">%5$s</a></span>', 'twentythirteen' ); |
31 | 31 | $post_title = get_the_title( $post->post_parent ); |
32 | | if ( empty( $post_title ) || 0 == $post->post_parent ) { |
| 32 | |
| 33 | if ( empty( $post_title ) || 0 === $post->post_parent ) { |
33 | 34 | $published_text = '<span class="attachment-meta"><time class="entry-date" datetime="%1$s">%2$s</time></span>'; |
34 | 35 | } |
35 | 36 | |
-
diff --git a/src/wp-content/themes/twentythirteen/inc/custom-header.php b/src/wp-content/themes/twentythirteen/inc/custom-header.php
index 7bbb50ec35..b87eaa058f 100644
a
|
b
|
function twentythirteen_header_style() { |
90 | 90 | $text_color = get_header_textcolor(); |
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 | } |
96 | 96 | |
… |
… |
function twentythirteen_header_style() { |
136 | 136 | endif; |
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, |
142 | 142 | .site-description { |
-
diff --git a/src/wp-content/themes/twentytwelve/functions.php b/src/wp-content/themes/twentytwelve/functions.php
index a4df147cb2..2be0df9903 100644
a
|
b
|
if ( ! function_exists( 'twentytwelve_comment' ) ) : |
460 | 460 | } |
461 | 461 | ?> |
462 | 462 | |
463 | | <?php if ( '0' == $comment->comment_approved ) : ?> |
| 463 | <?php if ( '0' === $comment->comment_approved ) : ?> |
464 | 464 | <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> |
465 | 465 | <?php endif; ?> |
466 | 466 | |
-
diff --git a/src/wp-content/themes/twentytwelve/image.php b/src/wp-content/themes/twentytwelve/image.php
index ef704a0045..824ae46093 100644
a
|
b
|
get_header(); ?> |
70 | 70 | ) |
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 | } |
76 | 76 | endforeach; |
-
diff --git a/src/wp-content/themes/twentytwelve/inc/custom-header.php b/src/wp-content/themes/twentytwelve/inc/custom-header.php
index 693883ca7a..84b3556c24 100644
a
|
b
|
function twentytwelve_header_style() { |
71 | 71 | $text_color = get_header_textcolor(); |
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 | } |
77 | 77 | |