WordPress.org

Make WordPress Core

Ticket #20045: 20045-default-to-you.diff

File 20045-default-to-you.diff, 1.4 KB (added by Ipstenu, 21 months ago)

Change checked to 'assign posts to another user' and assign that user to whomever is deleting.

  • wp-admin/users.php

     
    214214<?php if ( $go_delete ) : ?> 
    215215        <fieldset><p><legend><?php echo _n( 'What should be done with posts and links owned by this user?', 'What should be done with posts and links owned by these users?', $go_delete ); ?></legend></p> 
    216216        <ul style="list-style:none;"> 
    217                 <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" /> 
     217                <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" /> 
    218218                <?php _e('Delete all posts and links.'); ?></label></li> 
    219                 <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" /> 
     219                <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" checked="checked" /> 
    220220                <?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:').'</label>'; 
    221                 wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li> 
     221                wp_dropdown_users( array( 'name' => 'reassign_user', 'selected' => true, 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li> 
    222222        </ul></fieldset> 
    223223        <input type="hidden" name="action" value="dodelete" /> 
    224224        <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>