Make WordPress Core

Changeset 51075


Ignore:
Timestamp:
06/05/2021 01:56:49 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/options-media.php.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-media.php

    r47874 r51075  
    1919$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>';
    2020
    21 if ( ! is_multisite() && ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) ) {
     21if ( ! is_multisite()
     22    && ( get_option( 'upload_url_path' )
     23        || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) )
     24) {
    2225    $media_options_help .= '<p>' . __( 'Uploading Files allows you to choose the folder and path for storing your uploaded files.' ) . '</p>';
    2326}
     
    113116     * they can be edited, otherwise they're locked.
    114117     */
    115     if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) :
     118    if ( get_option( 'upload_url_path' )
     119        || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) :
    116120        ?>
    117121<tr>
Note: See TracChangeset for help on using the changeset viewer.