Ticket #27230: delete-users-filter..patch
File delete-users-filter..patch, 1.4 KB (added by , 10 years ago) |
---|
-
wp-admin/network/users.php
77 77 } 78 78 } 79 79 80 /** 81 * Fires at the end of the delete users form prior to the confirm button for plugins to add items to the form. 82 * 83 * @since 3.9.0 84 */ 85 do_action( 'delete_user_form', $current_user ); 86 80 87 submit_button( __('Confirm Deletion'), 'delete' ); 81 88 ?> 82 89 </form> -
wp-admin/users.php
248 248 <?php echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> '; 249 249 wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li> 250 250 </ul></fieldset> 251 <input type="hidden" name="action" value="dodelete" /> 251 <?php 252 /** 253 * Fires at the end of the delete users form prior to the confirm button for plugins to add items to the form. 254 * 255 * @since 3.9.0 256 */ 257 do_action( 'delete_user_form', $current_user ); 258 ?> 259 <input type="hidden" name="action" value="dodelete" /> 252 260 <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?> 253 261 <?php else : ?> 254 262 <p><?php _e('There are no valid users selected for deletion.'); ?></p>