Ticket #21720: upload-dirs-display-only.diff
File upload-dirs-display-only.diff, 1.6 KB (added by , 12 years ago) |
---|
-
wp-admin/options-media.php
118 118 <?php do_settings_fields('media', 'embeds'); ?> 119 119 </table> 120 120 121 <?php if ( !is_multisite() ) : ?> 122 <h3><?php _e('Uploading Files'); ?></h3> 123 <table class="form-table"> 124 <tr valign="top"> 125 <th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th> 126 <td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" /> 127 <p class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></p> 128 </td> 129 </tr> 121 <?php 122 if ( ! is_multisite() ) : 123 124 $uploads = wp_upload_dir(); 125 ?> 126 <h3><?php _e( 'Uploading Files' ); ?></h3> 130 127 131 <tr valign="top"> 132 <th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th> 133 <td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" /> 134 <p class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></p> 135 </td> 136 </tr> 128 <p><?php _e( 'Uploads are stored in this folder' ); ?>: <code><?php esc_html_e( $uploads['path'] ) ?></code></p> 137 129 130 <p><?php _e( 'Full URL path to files' ) ?>: <code><?php esc_html_e( $uploads['url'] ) ?></code></p> 131 132 133 <table class="form-table"> 134 138 135 <tr> 139 136 <th scope="row" colspan="2" class="th-full"> 140 137 <label for="uploads_use_yearmonth_folders">