Opened 2 years ago
Closed 11 months ago
#15737 closed defect (bug) (fixed)
Blogger Importer notices
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | Import | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: |
Description
I ran the Blogger Importer today on a blog with WP_DEBUG on and encountered too many notices, so I fixed them. Patch coming
Attachments (1)
Change History (4)
joostdevalk — 2 years ago
comment:2
Workshopshed — 12 months ago
Hi Joost,
I've got a working version of the importer based on Otto's OAuth fork. I also spotted the notices about unassigned variables.
I'm trying to understand part of your patch, I've changed get_user_options function to use get_users as follows.
function get_user_options($current) {
global $importer_users;
if ( ! isset( $importer_users ) )
$importer_users = (array) get_users(); //Function: get_users_of_blog() Deprecated in version 3.1. Use get_users() instead.
$options = '';
foreach ( $importer_users as $user ) {
$sel = ( $user->ID == $current ) ? " selected='selected'" : '';
$options .= "<option value='$user->ID'$sel>$user->display_name</option>";
}
return $options;
}
You've also change $user->ID to $user->data->ID, is that still relavent now that the function has been swapped out?
Note: See
TracTickets for help on using
tickets.

Patch