WordPress.org

Make WordPress Core

Ticket #49483: upload_filetypes-textarea.diff

File upload_filetypes-textarea.diff, 967 bytes (added by shamalisulakhe, 19 months ago)

Patch file with proposed changes

  • src/wp-admin/network/settings.php

    diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php
    index 2a26b48ab5..4615940ecf 100644
    a b if ( isset( $_GET['updated'] ) ) { 
    380380                        <tr>
    381381                                <th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ); ?></label></th>
    382382                                <td>
    383                                         <input name="upload_filetypes" type="text" id="upload_filetypes" aria-describedby="upload-filetypes-desc" class="large-text" value="<?php echo esc_attr( get_site_option( 'upload_filetypes', 'jpg jpeg png gif' ) ); ?>" size="45" />
     383                                        <textarea name="upload_filetypes" id="upload_filetypes" aria-describedby="upload-filetypes-desc" cols="45" rows="5"><?php echo esc_attr( get_site_option( 'upload_filetypes', 'jpg jpeg png gif' ) ); ?></textarea>
    384384                                        <p class="description" id="upload-filetypes-desc">
    385385                                                <?php _e( 'Allowed file types. Separate types by spaces.' ); ?>
    386386                                        </p>