Make WordPress Core


Ignore:
Timestamp:
06/01/2020 11:20:16 AM (5 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-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        ?>
Note: See TracChangeset for help on using the changeset viewer.