Make WordPress Core


Ignore:
Timestamp:
06/01/2020 11:20:16 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct and clarify an inline comment about the upload_url_path and upload_path options in wp-admin/options-media.php.

Synchronize it with a similar comment in wp-admin/options.php.

See #49572.

File:
1 edited

Legend:

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

    r47808 r47874  
    178178    $whitelist_options['media'][] = 'uploads_use_yearmonth_folders';
    179179
    180     // If upload_url_path and upload_path are both default values, they're locked.
     180    /*
     181     * If upload_url_path is not the default (empty),
     182     * or upload_path is not the default ('wp-content/uploads' or empty),
     183     * they can be edited, otherwise they're locked.
     184     */
    181185    if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) {
    182186        $whitelist_options['media'][] = 'upload_path';
Note: See TracChangeset for help on using the changeset viewer.