Changeset 9716 for trunk/wp-admin/import/mt.php
- Timestamp:
- 11/15/2008 06:10:35 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/mt.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/mt.php
r9369 r9716 56 56 57 57 function users_form($n) { 58 global $wpdb , $testing;58 global $wpdb; 59 59 $users = $wpdb->get_results("SELECT * FROM $wpdb->users ORDER BY ID"); 60 60 ?><select name="userselect[<?php echo $n; ?>]"> … … 102 102 //function to check the authorname and do the mapping 103 103 function checkauthor($author) { 104 global $wpdb;105 104 //mtnames is an array with the names in the mt import file 106 105 $pass = wp_generate_password(); … … 110 109 $user_id = username_exists($this->newauthornames[$this->j]); //check if the new author name defined by the user is a pre-existing wp user 111 110 if (!$user_id) { //banging my head against the desk now. 112 if ($ newauthornames[$this->j] == 'left_blank') { //check if the user does not want to change the authorname111 if ($this->newauthornames[$this->j] == 'left_blank') { //check if the user does not want to change the authorname 113 112 $user_id = wp_create_user($author, $pass); 114 113 $this->newauthornames[$this->j] = $author; //now we have a name, in the place of left_blank.
Note: See TracChangeset
for help on using the changeset viewer.