Changeset 21852
- Timestamp:
- 09/14/2012 09:00:39 PM (11 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-media.php
r20605 r21852 122 122 <h3><?php _e('Uploading Files'); ?></h3> 123 123 <table class="form-table"> 124 <?php 125 // If upload_url_path is not the default (empty), and upload_path is not the default ('wp-content/uploads' or empty) 126 if ( get_option('upload_url_path') || ( get_option('upload_path') != 'wp-content/uploads' && get_option('upload_path') ) ) : 127 ?> 124 128 <tr valign="top"> 125 129 <th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th> … … 135 139 </td> 136 140 </tr> 137 141 <?php endif; ?> 138 142 <tr> 139 143 <th scope="row" colspan="2" class="th-full"> -
trunk/wp-admin/options.php
r21849 r21852 69 69 70 70 $mail_options = array('mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass'); 71 $uploads_options = array('uploads_use_yearmonth_folders', 'upload_path', 'upload_url_path');72 71 73 72 if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) … … 87 86 $whitelist_options['writing'][] = 'ping_sites'; 88 87 89 $whitelist_options['media'] = array_merge($whitelist_options['media'], $uploads_options); 88 $whitelist_options['media'][] = 'uploads_use_yearmonth_folders'; 89 90 // If upload_url_path and upload_path are both default values, they're locked. 91 if ( get_option( 'upload_url_path' ) || ( get_option('upload_path') != 'wp-content/uploads' && get_option('upload_path') ) ) { 92 $whitelist_options['media'][] = 'upload_path'; 93 $whitelist_options['media'][] = 'upload_url_path'; 94 } 90 95 } else { 91 96 $whitelist_options['general'][] = 'new_admin_email';
Note: See TracChangeset
for help on using the changeset viewer.