Update comparisons to resolve the strict comparison warnings. See https://github.com/Automattic/_s/issues/784
This commit is contained in:
parent
d02cc4fa70
commit
af0a4749be
5 changed files with 6 additions and 6 deletions
|
@ -47,7 +47,7 @@ function _s_header_style() {
|
|||
|
||||
// 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.
|
||||
if ( HEADER_TEXTCOLOR == $header_text_color ) {
|
||||
if ( HEADER_TEXTCOLOR === $header_text_color ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ function _s_header_style() {
|
|||
<style type="text/css">
|
||||
<?php
|
||||
// Has the text been hidden?
|
||||
if ( 'blank' == $header_text_color ) :
|
||||
if ( 'blank' === $header_text_color ) :
|
||||
?>
|
||||
.site-title,
|
||||
.site-description {
|
||||
|
|
|
@ -103,7 +103,7 @@ if ( ! function_exists( '_s_entry_footer' ) ) :
|
|||
*/
|
||||
function _s_entry_footer() {
|
||||
// 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 */
|
||||
$categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
|
||||
if ( $categories_list && _s_categorized_blog() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue