IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
174 | 174 | wp_defer_comment_counting( false ); |
175 | 175 | |
176 | 176 | echo '<p>' . __( 'All done.', 'wordpress-importer' ) . ' <a href="' . admin_url() . '">' . __( 'Have fun!', 'wordpress-importer' ) . '</a>' . '</p>'; |
177 | | echo '<p>' . __( 'Remember to update the passwords and roles of imported users.', 'wordpress-importer' ) . '</p>'; |
| 177 | if( ! empty($_POST['user_new'] ) ) { |
| 178 | echo '<p>' . __('Remember to update the passwords and roles of imported users.', 'wordpress-importer') . '</p>'; |
| 179 | } |
178 | 180 | |
179 | 181 | do_action( 'import_end' ); |
180 | 182 | } |
… |
… |
|
302 | 304 | if ( $this->version != '1.0' ) |
303 | 305 | echo '<div style="margin-left:18px">'; |
304 | 306 | |
| 307 | $user_id = username_exists($author['author_login']); |
305 | 308 | $create_users = $this->allow_create_users(); |
306 | 309 | if ( $create_users ) { |
307 | 310 | if ( $this->version != '1.0' ) { |
308 | 311 | _e( 'or create new user with login name:', 'wordpress-importer' ); |
309 | | $value = ''; |
| 312 | $value = $user_id === false ? esc_attr( sanitize_user( $author['author_login'], true ) ) : ''; |
310 | 313 | } else { |
311 | 314 | _e( 'as a new user:', 'wordpress-importer' ); |
312 | 315 | $value = esc_attr( sanitize_user( $author['author_login'], true ) ); |
… |
… |
|
319 | 322 | _e( 'assign posts to an existing user:', 'wordpress-importer' ); |
320 | 323 | else |
321 | 324 | _e( 'or assign posts to an existing user:', 'wordpress-importer' ); |
322 | | wp_dropdown_users( array( 'name' => "user_map[$n]", 'multi' => true, 'show_option_all' => __( '- Select -', 'wordpress-importer' ) ) ); |
| 325 | wp_dropdown_users( array( 'selected' => $user_id === false ? 0 : $user_id, 'name' => "user_map[$n]", 'multi' => true, 'show_option_all' => __( '- Select -', 'wordpress-importer' ) ) ); |
323 | 326 | echo '<input type="hidden" name="imported_authors['.$n.']" value="' . esc_attr( $author['author_login'] ) . '" />'; |
324 | 327 | |
325 | 328 | if ( $this->version != '1.0' ) |