Make WordPress Core


Ignore:
Timestamp:
09/07/2014 10:10:33 AM (9 years ago)
Author:
SergeyBiryukov
Message:
  • Declare $site_mimes before using it in check_upload_mimes().
  • Use the same default value for 'upload_filetypes' as on Network Settings screen.

props rmccue.
fixes #29512 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/settings.php

    r29630 r29718  
    265265            <tr>
    266266                <th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th>
    267                 <td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td>
     267                <td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option( 'upload_filetypes', 'jpg jpeg png gif' ) ) ?>" size="45" /></td>
    268268            </tr>
    269269
Note: See TracChangeset for help on using the changeset viewer.