From f45d515ff8434f2ba0616b9b83038354e19f48a2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 10 Jul 2021 18:43:57 +0000 Subject: [PATCH] Twenty Fifteen: Use strict comparison in `inc/custom-header.php`. Props kapilpaul. See #53359. Built from https://develop.svn.wordpress.org/trunk@51401 git-svn-id: http://core.svn.wordpress.org/trunk@51012 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfifteen/inc/custom-header.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentyfifteen/inc/custom-header.php b/wp-content/themes/twentyfifteen/inc/custom-header.php index bf8655a73f..a09bb6b445 100644 --- a/wp-content/themes/twentyfifteen/inc/custom-header.php +++ b/wp-content/themes/twentyfifteen/inc/custom-header.php @@ -58,11 +58,11 @@ add_action( 'after_setup_theme', 'twentyfifteen_custom_header_setup' ); function twentyfifteen_hex2rgb( $color ) { $color = trim( $color, '#' ); - if ( strlen( $color ) == 3 ) { + if ( strlen( $color ) === 3 ) { $r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) ); $g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) ); $b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) ); - } elseif ( strlen( $color ) == 6 ) { + } elseif ( strlen( $color ) === 6 ) { $r = hexdec( substr( $color, 0, 2 ) ); $g = hexdec( substr( $color, 2, 2 ) ); $b = hexdec( substr( $color, 4, 2 ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 469ec1508d..059ffbdf1e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51400'; +$wp_version = '5.9-alpha-51401'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.