Changeset 45611 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 07/09/2019 05:44:42 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/pluggable.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r45590 r45611 1523 1523 $switched_locale = switch_to_locale( get_locale() ); 1524 1524 1525 $comment_author_domain = @gethostbyaddr( $comment->comment_author_IP ); 1525 $comment_author_domain = ''; 1526 if ( WP_Http::is_ip_address( $comment->comment_author_IP ) ) { 1527 $comment_author_domain = gethostbyaddr( $comment->comment_author_IP ); 1528 } 1526 1529 1527 1530 // The blogname option is escaped with esc_html on the way into the database in sanitize_option … … 1640 1643 1641 1644 foreach ( $emails as $email ) { 1642 @wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers );1645 wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers ); 1643 1646 } 1644 1647 … … 1697 1700 $switched_locale = switch_to_locale( get_locale() ); 1698 1701 1699 $comment_author_domain = @gethostbyaddr( $comment->comment_author_IP ); 1700 $comments_waiting = $wpdb->get_var( "SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'" ); 1702 $comment_author_domain = ''; 1703 if ( WP_Http::is_ip_address( $comment->comment_author_IP ) ) { 1704 $comment_author_domain = gethostbyaddr( $comment->comment_author_IP ); 1705 } 1706 1707 $comments_waiting = $wpdb->get_var( "SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'" ); 1701 1708 1702 1709 // The blogname option is escaped with esc_html on the way into the database in sanitize_option … … 1811 1818 1812 1819 foreach ( $emails as $email ) { 1813 @wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers );1820 wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers ); 1814 1821 } 1815 1822 … … 1948 1955 $wp_new_user_notification_email_admin = apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname ); 1949 1956 1950 @wp_mail(1957 wp_mail( 1951 1958 $wp_new_user_notification_email_admin['to'], 1952 1959 wp_specialchars_decode( sprintf( $wp_new_user_notification_email_admin['subject'], $blogname ) ),
Note: See TracChangeset
for help on using the changeset viewer.