WordPress.org

Plugin Directory

Changeset 350057


Ignore:
Timestamp:
02/23/11 22:20:10 (3 years ago)
Author:
duck_
Message:

Map comment user_id where possible

Location:
wordpress-importer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-importer/trunk/parsers.php

    r350032 r350057  
    559559                    'comment_type' => $this->get_tag( $comment, 'wp:comment_type' ), 
    560560                    'comment_parent' => $this->get_tag( $comment, 'wp:comment_parent' ), 
     561                    'comment_user_id' => $this->get_tag( $comment, 'wp:comment_user_id' ), 
    561562                ); 
    562563            } 
  • wordpress-importer/trunk/wordpress-importer.php

    r350032 r350057  
    66Author: wordpressdotorg 
    77Author URI: http://wordpress.org/ 
    8 Version: 0.4-alpha1 
     8Version: 0.4-alpha2 
    99Text Domain: wordpress-importer 
    1010License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     
    640640                    $newcomments[$comment_id]['comment_type']         = $comment['comment_type']; 
    641641                    $newcomments[$comment_id]['comment_parent']       = $comment['comment_parent']; 
     642                    if ( isset( $this->processed_authors[$comment['comment_user_id']] ) ) 
     643                        $newcomments[$comment_id]['user_id'] = $this->processed_authors[$comment['comment_user_id']]; 
    642644                } 
    643645                ksort( $newcomments ); 
Note: See TracChangeset for help on using the changeset viewer.