WordPress.org

Make WordPress Core

Ticket #3600: content-type.diff

File content-type.diff, 1.4 KB (added by nickshanks, 8 years ago)

Patch to options-misc supporting content-type selection

  • wp-admin/options-misc.php

     
    3535</table> 
    3636</fieldset> 
    3737 
     38<fieldset class="options"> 
     39<legend><?php _e('Content MIME Type'); ?></legend> 
     40<p><input type="radio" id="html_type_html" name="html_type" value="text/html" <?php checked('text/html', get_option('html_type')); ?> /> 
     41<label for="html_type_html"><?php _e('text/html') ?></label></p> 
     42<p><input type="radio" id="html_type_xhtml" name="html_type" value="application/xhtml+xml" <?php checked('application/xhtml+xml', get_option('html_type')); ?> /> 
     43<label for="html_type_xhtml"><?php _e('application/xhtml+xml') ?></label></p> 
     44</fieldset> 
     45 
    3846<p><input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_option('use_linksupdate')); ?> /> 
    3947<label for="use_linksupdate"><?php _e('Track Bookmarks&#8217; Update Times') ?></label></p> 
    4048<p> 
     
    4351 
    4452<p class="submit"> 
    4553<input type="hidden" name="action" value="update" /> 
    46 <input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path" /> 
     54<input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path,html_type" /> 
    4755<input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /> 
    4856</p> 
    4957</form>