WordPress.org

Make WordPress Core

Ticket #15586: wp15586-upload_type-no-index-warning.diff

File wp15586-upload_type-no-index-warning.diff, 558 bytes (added by lloydbudd, 9 years ago)
  • movabletype-importer.php

     
    230230        }
    231231
    232232        function select_authors() {
    233                 if ( $_POST['upload_type'] === 'ftp' ) {
     233                if ( isset( $_POST['upload_type'] ) && 'ftp' === $_POST['upload_type'] ) {
    234234                        $file['file'] = WP_CONTENT_DIR . '/mt-export.txt';
    235235                        if ( !file_exists($file['file']) )
    236236                                $file['error'] = __('<code>mt-export.txt</code> does not exist', 'movabletype-importer');