/ If upload url path and upload path are both default values, they're locked.
if ( get_option( 'upload_url_path' ) II ((get_option ('upload_path') != 'wp-content/uploads' &E get_option ('upload_path') ) ) {
Şwhitelist_options['media'] = 'upload_path;
$whitelist_options ['media'][] = 'upload_url_path';