Changeset 21852 for trunk/wp-admin/options.php
- Timestamp:
- 09/14/2012 09:00:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.