Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-admin/import/mt.php

    r4608 r5405  
    148148        echo '<ol id="authors">';
    149149        echo '<form action="?import=mt&amp;step=2&amp;id=' . $this->id . '" method="post">';
     150        wp_nonce_field('import-mt');
    150151        $j = -1;
    151152        foreach ($authors as $author) {
     
    172173        }
    173174        $this->file = $file['file'];
    174         $this->id = $file['id'];
     175        $this->id = (int) $file['id'];
    175176
    176177        $this->get_entries();
     
    296297                }
    297298
    298                 $comment_post_ID = $post_id;
     299                $comment_post_ID = (int) $post_id;
    299300                $comment_approved = 1;
    300301
     
    418419                break;
    419420            case 1 :
     421                check_admin_referer('import-upload');
    420422                $this->select_authors();
    421423                break;
    422424            case 2:
     425                check_admin_referer('import-mt');
    423426                $this->import();
    424427                break;
Note: See TracChangeset for help on using the changeset viewer.