Changeset 4495 for trunk/wp-admin/import/wordpress.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/wordpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r4424 r4495 59 59 if (!(in_array($author, $this->mtnames))) { //a new mt author name is found 60 60 ++ $this->j; 61 $this->mtnames[$this->j] = $author; //add that new mt author name to an array 61 $this->mtnames[$this->j] = $author; //add that new mt author name to an array 62 62 $user_id = username_exists($this->newauthornames[$this->j]); //check if the new author name defined by the user is a pre-existing wp user 63 if (!$user_id) { //banging my head against the desk now. 63 if (!$user_id) { //banging my head against the desk now. 64 64 if ($newauthornames[$this->j] == 'left_blank') { //check if the user does not want to change the authorname 65 65 $user_id = wp_create_user($author, $pass); … … 274 274 function import() { 275 275 $this->id = (int) $_GET['id']; 276 276 277 277 $this->file = get_attached_file($this->id); 278 278 $this->get_authors_from_post();
Note: See TracChangeset
for help on using the changeset viewer.