Changes from trunk/wp-admin/import/mt.php at r4608 to branches/2.2/wp-admin/import/mt.php at r5405
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/import/mt.php
r4608 r5405 148 148 echo '<ol id="authors">'; 149 149 echo '<form action="?import=mt&step=2&id=' . $this->id . '" method="post">'; 150 wp_nonce_field('import-mt'); 150 151 $j = -1; 151 152 foreach ($authors as $author) { … … 172 173 } 173 174 $this->file = $file['file']; 174 $this->id = $file['id'];175 $this->id = (int) $file['id']; 175 176 176 177 $this->get_entries(); … … 296 297 } 297 298 298 $comment_post_ID = $post_id;299 $comment_post_ID = (int) $post_id; 299 300 $comment_approved = 1; 300 301 … … 418 419 break; 419 420 case 1 : 421 check_admin_referer('import-upload'); 420 422 $this->select_authors(); 421 423 break; 422 424 case 2: 425 check_admin_referer('import-mt'); 423 426 $this->import(); 424 427 break;
Note: See TracChangeset
for help on using the changeset viewer.