Changeset 35735 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 11/24/2015 11:06:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r35415 r35735 1459 1459 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1460 1460 $comment_content = wp_specialchars_decode( $comment->comment_content ); 1461 1461 1462 1462 switch ( $comment->comment_type ) { 1463 1463 case 'trackback': … … 1738 1738 * @param null $deprecated Not used (argument deprecated). 1739 1739 * @param string $notify Optional. Type of notification that should happen. Accepts 'admin' or an empty 1740 * string (admin only), or 'both' (admin and user). The empty string value was kept 1741 * for backward-compatibility purposes with the renamed parameter. Default empty. 1740 * string (admin only), or 'both' (admin and user). Default empty. 1742 1741 */ 1743 1742 function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) { … … 1759 1758 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); 1760 1759 1761 if ( 'admin' === $notify || empty( $notify ) ) { 1760 // `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notifcation. 1761 if ( 'admin' === $notify || ( empty( $deprecated ) && empty( $notify ) ) ) { 1762 1762 return; 1763 1763 }
Note: See TracChangeset
for help on using the changeset viewer.