WordPress.org

Make WordPress Core

Ticket #27230: 27230.patch

File 27230.patch, 1.2 KB (added by SergeyBiryukov, 6 years ago)

Fixed formatting

  • src/wp-admin/network/users.php

     
    7777                }
    7878        }
    7979
     80        /** This action is documented in wp-admin/users.php */
     81        do_action( 'delete_user_form', $current_user );
     82
    8083        submit_button( __('Confirm Deletion'), 'delete' );
    8184        ?>
    8285        </form>
  • src/wp-admin/users.php

     
    244244                <?php echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
    245245                wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
    246246        </ul></fieldset>
     247        <?php
     248        /**
     249         * Fires at the end of the delete users form prior to the confirm button.
     250         *
     251         * @since 4.0.0
     252         *
     253         * @param WP_User $current_user WP_User object for the user being deleted.
     254         */
     255        do_action( 'delete_user_form', $current_user );
     256        ?>
    247257        <input type="hidden" name="action" value="dodelete" />
    248258        <?php submit_button( __('Confirm Deletion'), 'secondary' ); ?>
    249259<?php else : ?>