Changeset 47874
- Timestamp:
- 06/01/2020 11:20:16 AM (5 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-media.php
r47198 r47874 108 108 <table class="form-table" role="presentation"> 109 109 <?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 */ 111 115 if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) : 112 116 ?> -
trunk/src/wp-admin/options.php
r47808 r47874 178 178 $whitelist_options['media'][] = 'uploads_use_yearmonth_folders'; 179 179 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 */ 181 185 if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) { 182 186 $whitelist_options['media'][] = 'upload_path';
Note: See TracChangeset
for help on using the changeset viewer.