--- a/wp/wp-admin/options-media.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/options-media.php Wed Sep 21 18:19:35 2022 +0200
@@ -18,7 +18,10 @@
$media_options_help = '<p>' . __( 'You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.' ) . '</p>';
-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 .= '<p>' . __( 'Uploading Files allows you to choose the folder and path for storing your uploaded files.' ) . '</p>';
}
@@ -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' ) ) :
?>
<tr>
<th scope="row"><label for="upload_path"><?php _e( 'Store uploads in this folder' ); ?></label></th>