-<?php if ( $go_delete ) : ?>
- <?php if ( 1 == $go_delete ) : ?>
- <fieldset><p><legend><?php _e( 'What should be done with content owned by this user?' ); ?></legend></p>
- <?php else : ?>
- <fieldset><p><legend><?php _e( 'What should be done with content owned by these users?' ); ?></legend></p>
- <?php endif; ?>
- <ul style="list-style:none;">
- <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" />
- <?php _e('Delete all content.'); ?></label></li>
- <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" />
- <?php echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
- wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
- </ul></fieldset>
- <?php
+<?php if ( $go_delete ) :
+
+ if ( ! $users_have_content ) : ?>
+ <input type="hidden" name="delete_option" value="delete" />
+ <?php else: ?>
+ <?php if ( 1 == $go_delete ) : ?>
+ <fieldset><p><legend><?php _e( 'What should be done with content owned by this user?' ); ?></legend></p>
+ <?php else : ?>
+ <fieldset><p><legend><?php _e( 'What should be done with content owned by these users?' ); ?></legend></p>
+ <?php endif; ?>
+ <ul style="list-style:none;">
+ <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" />
+ <?php _e('Delete all content.'); ?></label></li>
+ <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" />
+ <?php echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
+ wp_dropdown_users( array(
+ 'name' => 'reassign_user',
+ 'exclude' => array_diff( $userids, array( $current_user->ID ) ),
+ 'show' => 'display_name_with_login',
+ ) ); ?></li>
+ </ul></fieldset>
+ <?php endif;