WordPress.org

Make WordPress Core

Changeset 47874


Ignore:
Timestamp:
06/01/2020 11:20:16 AM (17 months 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.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r47198 r47874  
    108108<table class="form-table" role="presentation">
    109109    <?php
    110     // If upload_url_path is not the default (empty), and upload_path is not the default ('wp-content/uploads' or empty).
     110    /*
     111     * If upload_url_path is not the default (empty),
     112     * or upload_path is not the default ('wp-content/uploads' or empty),
     113     * they can be edited, otherwise they're locked.
     114     */
    111115    if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) :
    112116        ?>
  • 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.