Merge pull request #792 from grantpalin/master

Update comparisons to resolve the strict comparison warnings
This commit is contained in:
David A. Kennedy 2015-08-21 19:28:13 -04:00
commit 268a1e2ced
5 changed files with 6 additions and 6 deletions

View File

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

View File

@ -47,7 +47,7 @@ function _s_header_style() {
// If no custom options for text are set, let's bail // If no custom options for text are set, let's bail
// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value. // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value.
if ( HEADER_TEXTCOLOR == $header_text_color ) { if ( HEADER_TEXTCOLOR === $header_text_color ) {
return; return;
} }
@ -56,7 +56,7 @@ function _s_header_style() {
<style type="text/css"> <style type="text/css">
<?php <?php
// Has the text been hidden? // Has the text been hidden?
if ( 'blank' == $header_text_color ) : if ( 'blank' === $header_text_color ) :
?> ?>
.site-title, .site-title,
.site-description { .site-description {

View File

@ -45,7 +45,7 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
*/ */
function _s_entry_footer() { function _s_entry_footer() {
// Hide category and tag text for pages. // Hide category and tag text for pages.
if ( 'post' == get_post_type() ) { if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */ /* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', '_s' ) ); $categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
if ( $categories_list && _s_categorized_blog() ) { if ( $categories_list && _s_categorized_blog() ) {

View File

@ -13,7 +13,7 @@
<header class="entry-header"> <header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?> <?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta"> <div class="entry-meta">
<?php _s_posted_on(); ?> <?php _s_posted_on(); ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->

View File

@ -13,7 +13,7 @@
<header class="entry-header"> <header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?> <?php if ( 'post' === get_post_type() ) : ?>
<div class="entry-meta"> <div class="entry-meta">
<?php _s_posted_on(); ?> <?php _s_posted_on(); ?>
</div><!-- .entry-meta --> </div><!-- .entry-meta -->