Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 268a1e2

Browse files
committed
Merge pull request #792 from grantpalin/master
Update comparisons to resolve the strict comparison warnings
2 parents 7195b49 + af0a474 commit 268a1e2

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
<?php
7474
// If comments are closed and there are comments, let's leave a little note, shall we?
75-
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
75+
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
7676
?>
7777
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
7878
<?php endif; ?>

inc/custom-header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function _s_header_style() {
4747

4848
// If no custom options for text are set, let's bail
4949
// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value.
50-
if ( HEADER_TEXTCOLOR == $header_text_color ) {
50+
if ( HEADER_TEXTCOLOR === $header_text_color ) {
5151
return;
5252
}
5353

@@ -56,7 +56,7 @@ function _s_header_style() {
5656
<style type="text/css">
5757
<?php
5858
// Has the text been hidden?
59-
if ( 'blank' == $header_text_color ) :
59+
if ( 'blank' === $header_text_color ) :
6060
?>
6161
.site-title,
6262
.site-description {

inc/template-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function _s_posted_on() {
4545
*/
4646
function _s_entry_footer() {
4747
// Hide category and tag text for pages.
48-
if ( 'post' == get_post_type() ) {
48+
if ( 'post' === get_post_type() ) {
4949
/* translators: used between list items, there is a space after the comma */
5050
$categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
5151
if ( $categories_list && _s_categorized_blog() ) {

template-parts/content-search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<header class="entry-header">
1414
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
1515

16-
<?php if ( 'post' == get_post_type() ) : ?>
16+
<?php if ( 'post' === get_post_type() ) : ?>
1717
<div class="entry-meta">
1818
<?php _s_posted_on(); ?>
1919
</div><!-- .entry-meta -->

template-parts/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<header class="entry-header">
1414
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
1515

16-
<?php if ( 'post' == get_post_type() ) : ?>
16+
<?php if ( 'post' === get_post_type() ) : ?>
1717
<div class="entry-meta">
1818
<?php _s_posted_on(); ?>
1919
</div><!-- .entry-meta -->

0 commit comments

Comments
 (0)