From b495611a35b28174bc09aaefa621eb70ea24616d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 5 Jun 2021 13:56:49 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/options-media.php`. See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@51075 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-media.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/options-media.php b/src/wp-admin/options-media.php index 6236b20f6d7d..89e0baa67c1b 100644 --- a/src/wp-admin/options-media.php +++ b/src/wp-admin/options-media.php @@ -18,7 +18,10 @@ $media_options_help = '

' . __( 'You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.' ) . '

'; -if ( ! is_multisite() && ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) ) { +if ( ! is_multisite() + && ( get_option( 'upload_url_path' ) + || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) +) { $media_options_help .= '

' . __( 'Uploading Files allows you to choose the folder and path for storing your uploaded files.' ) . '

'; } @@ -112,7 +115,8 @@ * or upload_path is not the default ('wp-content/uploads' or empty), * they can be edited, otherwise they're locked. */ - if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) : + if ( get_option( 'upload_url_path' ) + || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) : ?>