Changeset 33620 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 08/17/2015 02:24:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r33246 r33620 1689 1689 * 1690 1690 * @since 2.0.0 1691 * 1692 * @param int $user_id User ID. 1693 */ 1694 function wp_new_user_notification($user_id) { 1691 * @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`. 1692 * 1693 * @param int $user_id User ID. 1694 * @param string $notify Whether admin and user should be notified ('both') or 1695 * only the admin ('admin' or empty). 1696 */ 1697 function wp_new_user_notification( $user_id, $notify = '' ) { 1695 1698 global $wpdb; 1696 1699 $user = get_userdata( $user_id ); … … 1706 1709 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); 1707 1710 1711 if ( 'admin' === $notify || empty( $notify ) ) { 1712 return; 1713 } 1714 1708 1715 // Generate something random for a password reset key. 1709 1716 $key = wp_generate_password( 20, false ); 1710 1717 1718 /** This action is documented in wp-login.php */ 1711 1719 do_action( 'retrieve_password_key', $user->user_login, $key ); 1712 1720 … … 1726 1734 1727 1735 wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message); 1728 1729 1736 } 1730 1737 endif;
Note: See TracChangeset
for help on using the changeset viewer.