WordPress.org

Make WordPress Core

Ticket #11687: 11687.3.diff

File 11687.3.diff, 1.4 KB (added by Denis-de-Bernardy, 4 years ago)

untested

  • wp-admin/options-media.php

     
    9090<?php do_settings_fields('media', 'embeds'); ?> 
    9191</table> 
    9292 
     93<?php if ( !is_multisite() ) : ?> 
    9394<h3><?php _e('Uploading Files'); ?></h3> 
    9495<table class="form-table"> 
    9596<tr valign="top"> 
     
    117118 
    118119<?php do_settings_fields('media', 'uploads'); ?> 
    119120</table> 
     121<?php endif; ?> 
    120122 
    121123<?php do_settings_sections('media'); ?> 
    122124 
  • wp-admin/options.php

     
    3535        'options' => array( '' ) ); 
    3636 
    3737$mail_options = array('mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass'); 
     38$uploads_options = array('uploads_use_yearmonth_folders', 'upload_path', 'upload_url_path'); 
    3839 
    3940if ( !is_multisite() ) { 
    4041        if ( !defined( 'WP_SITEURL' ) ) $whitelist_options['general'][] = 'siteurl'; 
     
    4546 
    4647        $whitelist_options['writing'] = array_merge($whitelist_options['writing'], $mail_options); 
    4748        $whitelist_options['writing'][] = 'ping_sites'; 
     49         
     50        $whiltelist_options['media'] = array_merge($whiltelist_options['media'], $uploads_options); 
    4851} else { 
    4952        $whitelist_options['general'][] = 'new_admin_email'; 
    5053        $whitelist_options['general'][] = 'WPLANG';