diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2020-05-16 18:40:52 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2020-05-16 18:40:52 +0000 |
commit | 6742d0d7a65e37f24c67eeaae373f4c086c277a5 (patch) | |
tree | 52f6a25d1a0142a140d6fbd07b1e1cd8761a0d3a /src/wp-admin/includes/class-custom-image-header.php | |
parent | 36e4db6b01b4ffa56296d870f8f8978b0be5b85e (diff) | |
download | wordpress-6742d0d7a65e37f24c67eeaae373f4c086c277a5.tar.gz wordpress-6742d0d7a65e37f24c67eeaae373f4c086c277a5.zip |
Coding Standards: Use strict comparison where static strings are involved.
This reduces the number of `WordPress.PHP.StrictComparisons.LooseComparison` issues in half, from 1897 to 890.
Includes minor code layout fixes for better readability.
See #49542.
git-svn-id: https://develop.svn.wordpress.org/trunk@47808 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/wp-admin/includes/class-custom-image-header.php')
-rw-r--r-- | src/wp-admin/includes/class-custom-image-header.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wp-admin/includes/class-custom-image-header.php b/src/wp-admin/includes/class-custom-image-header.php index a8264d5bb7..fe0a2e5015 100644 --- a/src/wp-admin/includes/class-custom-image-header.php +++ b/src/wp-admin/includes/class-custom-image-header.php @@ -281,7 +281,7 @@ class Custom_Image_Header { * or 'uploaded' (for the Uploaded Images control). */ public function show_header_selector( $type = 'default' ) { - if ( 'default' == $type ) { + if ( 'default' === $type ) { $headers = $this->default_headers; } else { $headers = get_uploaded_header_images(); @@ -359,7 +359,7 @@ class Custom_Image_Header { if ( ! checked ) return; text_color = $('#text-color'); - if ( '' == text_color.val().replace('#', '') ) { + if ( '' === text_color.val().replace('#', '') ) { text_color.val( default_color ); pickColor( default_color ); } else { |