WordPress.org

Plugin Directory

Changeset 480566


Ignore:
Timestamp:
12/25/11 21:26:16 (2 years ago)
Author:
sorich87
Message:

Version 0.3.1, don't process empty csv columns

Location:
import-users-from-csv/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • import-users-from-csv/trunk/import-users-from-csv.php

    r477249 r480566  
    22/** 
    33 * @package Import_Users_from_CSV 
    4  * @version 0.3 
     4 * @version 0.3.1 
    55 */ 
    66/* 
     
    88Plugin URI: http://pubpoet.com/plugins/ 
    99Description: Import Users data and metadata from a csv file. 
    10 Version: 0.3 
     10Version: 0.3.1 
    1111Author: PubPoet 
    1212Author URI: http://pubpoet.com/ 
     
    116116                        $column = trim( $column ); 
    117117 
     118                        if ( empty( $column ) ) 
     119                            continue; 
     120 
    118121                        if ( in_array( $column_name, $userdata_fields ) ) { 
    119122                            $userdata[$column_name] = $column; 
     
    149152                    if ( array( 'ID' => $user_id ) == $userdata ) 
    150153                        $user_id = get_userdata( $user_id )->ID; // To check if the user id exists 
    151                     if ( $update ) 
     154                    else if ( $update ) 
    152155                        $user_id = wp_update_user( $userdata ); 
    153156                    else 
  • import-users-from-csv/trunk/readme.txt

    r477249 r480566  
    44Requires at least: 3.1 
    55Tested up to: 3.3 
    6 Stable tag: 0.3 
     6Stable tag: 0.3.1 
    77 
    88Import users from a CSV file into WordPress 
     
    8080== Changelog == 
    8181 
     82= 0.3.1 = 
     83* Don't process empty columns in the csv file 
     84 
    8285= 0.3 = 
    8386* Fixed bug where password field was overwritten for existing users 
Note: See TracChangeset for help on using the changeset viewer.