WordPress.org

Make WordPress Core

Changeset 27838


Ignore:
Timestamp:
03/29/2014 06:22:46 AM (7 years ago)
Author:
nacin
Message:

Add a value to the password checkbox when creating a new user so the toggle is remembered.

props chriseverson, SergeyBiryukov.
fixes #27006.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r27801 r27838  
    401401    <tr>
    402402        <th scope="row"><label for="send_password"><?php _e('Send Password?') ?></label></th>
    403         <td><label for="send_password"><input type="checkbox" name="send_password" id="send_password" <?php checked( $new_user_send_password ); ?> /> <?php _e('Send this password to the new user by email.'); ?></label></td>
     403        <td><label for="send_password"><input type="checkbox" name="send_password" id="send_password" value="1" <?php checked( $new_user_send_password ); ?> /> <?php _e('Send this password to the new user by email.'); ?></label></td>
    404404    </tr>
    405405<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.