{"action":"created","issue":{"url":"https://api.github.com/repos/jpSimkins/Drupal2WordPress-Plugin/issues/8","labels_url":"https://api.github.com/repos/jpSimkins/Drupal2WordPress-Plugin/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jpSimkins/Drupal2WordPress-Plugin/issues/8/comments","events_url":"https://api.github.com/repos/jpSimkins/Drupal2WordPress-Plugin/issues/8/events","html_url":"https://github.com/jpSimkins/Drupal2WordPress-Plugin/issues/8","id":76012110,"number":8,"title":"Why not use wp_insert_author()?","user":{"login":"drywall","id":140851,"avatar_url":"https://avatars.githubusercontent.com/u/140851?v=3","gravatar_id":"","url":"https://api.github.com/users/drywall","html_url":"https://github.com/drywall","followers_url":"https://api.github.com/users/drywall/followers","following_url":"https://api.github.com/users/drywall/following{/other_user}","gists_url":"https://api.github.com/users/drywall/gists{/gist_id}","starred_url":"https://api.github.com/users/drywall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drywall/subscriptions","organizations_url":"https://api.github.com/users/drywall/orgs","repos_url":"https://api.github.com/users/drywall/repos","events_url":"https://api.github.com/users/drywall/events{/privacy}","received_events_url":"https://api.github.com/users/drywall/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T14:51:15Z","updated_at":"2015-05-15T14:55:59Z","closed_at":"2015-05-15T14:55:59Z","body":"Browsing through the source, looks like there are a lot of acrobatics for _importUsersData() inserts. Just curious why wp_insert_author() isn't being used...?"},"comment":{"url":"https://api.github.com/repos/jpSimkins/Drupal2WordPress-Plugin/issues/comments/102421554","html_url":"https://github.com/jpSimkins/Drupal2WordPress-Plugin/issues/8#issuecomment-102421554","issue_url":"https://api.github.com/repos/jpSimkins/Drupal2WordPress-Plugin/issues/8","id":102421554,"user":{"login":"jpSimkins","id":4512118,"avatar_url":"https://avatars.githubusercontent.com/u/4512118?v=3","gravatar_id":"","url":"https://api.github.com/users/jpSimkins","html_url":"https://github.com/jpSimkins","followers_url":"https://api.github.com/users/jpSimkins/followers","following_url":"https://api.github.com/users/jpSimkins/following{/other_user}","gists_url":"https://api.github.com/users/jpSimkins/gists{/gist_id}","starred_url":"https://api.github.com/users/jpSimkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpSimkins/subscriptions","organizations_url":"https://api.github.com/users/jpSimkins/orgs","repos_url":"https://api.github.com/users/jpSimkins/repos","events_url":"https://api.github.com/users/jpSimkins/events{/privacy}","received_events_url":"https://api.github.com/users/jpSimkins/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T14:55:59Z","updated_at":"2015-05-15T14:55:59Z","body":"Assuming you are referring to `wp_insert_user`, valid question. I am currently in the process of overhauling this plugin and that is used in the new version. When I started on this project I was basing it off a SQL script and for lack of better judgement I created the `_importUsersData` method. \r\n\r\nOriginally, this was a small script for personal use. I then decided to clean it up and release it. Shortly afterwards I realized that I should re-structure the entire plugin to be more scalable and integrate proper core WordPress features.\r\n\r\nNot sure when I will have the new code available as it is a complete rewrite but moving forward, I am using core WordPress methods."}}