diff --git src/wp-admin/options-discussion.php src/wp-admin/options-discussion.php
index fefc0d82df..5a71df3e66 100644
|
|
|
printf( __('Comments should be displayed with the %s comments at the top of each |
| 152 | 152 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend> |
| 153 | 153 | <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="number" step="1" min="0" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ); ?></label></p> |
| 154 | 154 | |
| 155 | | <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> |
| | 155 | <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP address, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> |
| 156 | 156 | <p> |
| 157 | 157 | <textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea> |
| 158 | 158 | </p> |
| … |
… |
printf( __('Comments should be displayed with the %s comments at the top of each |
| 161 | 161 | <tr> |
| 162 | 162 | <th scope="row"><?php _e('Comment Blacklist'); ?></th> |
| 163 | 163 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend> |
| 164 | | <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be put in the trash. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> |
| | 164 | <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP address, it will be put in the trash. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> |
| 165 | 165 | <p> |
| 166 | 166 | <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> |
| 167 | 167 | </p> |
diff --git src/wp-includes/Requests/IPv6.php src/wp-includes/Requests/IPv6.php
index 204dbd7e66..248e156bed 100644
|
|
|
class Requests_IPv6 { |
| 83 | 83 | * @return string The compressed IPv6 address |
| 84 | 84 | */ |
| 85 | 85 | public static function compress($ip) { |
| 86 | | // Prepare the IP to be compressed |
| | 86 | // Prepare the IP address to be compressed |
| 87 | 87 | $ip = self::uncompress($ip); |
| 88 | 88 | $ip_parts = self::split_v6_v4($ip); |
| 89 | 89 | |
| … |
… |
class Requests_IPv6 { |
| 139 | 139 | /** |
| 140 | 140 | * Checks an IPv6 address |
| 141 | 141 | * |
| 142 | | * Checks if the given IP is a valid IPv6 address |
| | 142 | * Checks if the given IP address is a valid IPv6 address |
| 143 | 143 | * |
| 144 | 144 | * @param string $ip An IPv6 address |
| 145 | 145 | * @return bool true if $ip is a valid IPv6 address |
diff --git src/wp-includes/SimplePie/Net/IPv6.php src/wp-includes/SimplePie/Net/IPv6.php
index da80d8acac..a814609312 100644
|
|
|
class SimplePie_Net_IPv6 |
| 146 | 146 | */ |
| 147 | 147 | public static function compress($ip) |
| 148 | 148 | { |
| 149 | | // Prepare the IP to be compressed |
| | 149 | // Prepare the IP address to be compressed |
| 150 | 150 | $ip = self::uncompress($ip); |
| 151 | 151 | $ip_parts = self::split_v6_v4($ip); |
| 152 | 152 | |
diff --git src/wp-includes/class-http.php src/wp-includes/class-http.php
index b9f5ab50fb..668f5f7c4f 100644
|
|
|
class WP_Http { |
| 994 | 994 | * |
| 995 | 995 | * This function also detects the type of the IP address, returning either |
| 996 | 996 | * '4' or '6' to represent a IPv4 and IPv6 address respectively. |
| 997 | | * This does not verify if the IP is a valid IP, only that it appears to be |
| | 997 | * This does not verify if the IP address is a valid IP address, only that it appears to be |
| 998 | 998 | * an IP address. |
| 999 | 999 | * |
| 1000 | 1000 | * @link http://home.deds.nl/~aeron/regex/ for IPv6 regex |
diff --git src/wp-includes/class-smtp.php src/wp-includes/class-smtp.php
index 3ad081926a..6fea9afafe 100644
|
|
|
class SMTP |
| 248 | 248 | |
| 249 | 249 | /** |
| 250 | 250 | * Connect to an SMTP server. |
| 251 | | * @param string $host SMTP server IP or host name |
| | 251 | * @param string $host SMTP server IP address or host name |
| 252 | 252 | * @param integer $port The port number to connect to |
| 253 | 253 | * @param integer $timeout How long to wait for the connection to open |
| 254 | 254 | * @param array $options An array of options for stream_context_create() |
| … |
… |
class SMTP |
| 658 | 658 | * This makes sure that client and server are in a known state. |
| 659 | 659 | * Implements RFC 821: HELO <SP> <domain> <CRLF> |
| 660 | 660 | * and RFC 2821 EHLO. |
| 661 | | * @param string $host The host name or IP to connect to |
| | 661 | * @param string $host The host name or IP address to connect to |
| 662 | 662 | * @access public |
| 663 | 663 | * @return boolean |
| 664 | 664 | */ |
diff --git src/wp-includes/class-wp-http-streams.php src/wp-includes/class-wp-http-streams.php
index 2f10c67598..ece47d3064 100644
|
|
|
class WP_Http_Streams { |
| 340 | 340 | return false; |
| 341 | 341 | |
| 342 | 342 | /* |
| 343 | | * If the request is being made to an IP address, we'll validate against IP fields |
| | 343 | * If the request is being made to an IP address, we'll validate against IP address fields |
| 344 | 344 | * in the cert (if they exist) |
| 345 | 345 | */ |
| 346 | 346 | $host_type = ( WP_Http::is_ip_address( $host ) ? 'ip' : 'dns' ); |
| … |
… |
class WP_Http_Streams { |
| 350 | 350 | $match_against = preg_split( '/,\s*/', $cert['extensions']['subjectAltName'] ); |
| 351 | 351 | foreach ( $match_against as $match ) { |
| 352 | 352 | list( $match_type, $match_host ) = explode( ':', $match ); |
| 353 | | if ( $host_type == strtolower( trim( $match_type ) ) ) // IP: or DNS: |
| | 353 | if ( $host_type == strtolower( trim( $match_type ) ) ) // IP address: or DNS: |
| 354 | 354 | $certificate_hostnames[] = strtolower( trim( $match_host ) ); |
| 355 | 355 | } |
| 356 | 356 | } elseif ( !empty( $cert['subject']['CN'] ) ) { |
| … |
… |
class WP_Http_Streams { |
| 358 | 358 | $certificate_hostnames[] = strtolower( $cert['subject']['CN'] ); |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | | // Exact hostname/IP matches. |
| | 361 | // Exact hostname/IP address matches. |
| 362 | 362 | if ( in_array( strtolower( $host ), $certificate_hostnames ) ) |
| 363 | 363 | return true; |
| 364 | 364 | |
| 365 | | // IP's can't be wildcards, Stop processing. |
| | 365 | // IP address can't be wildcards, Stop processing. |
| 366 | 366 | if ( 'ip' == $host_type ) |
| 367 | 367 | return false; |
| 368 | 368 | |
diff --git src/wp-includes/comment.php src/wp-includes/comment.php
index 7398f99dd9..78eedb7985 100644
|
|
|
function check_comment_flood_db() { |
| 790 | 790 | * @global wpdb $wpdb WordPress database abstraction object. |
| 791 | 791 | * |
| 792 | 792 | * @param bool $is_flood Is a comment flooding occurring? |
| 793 | | * @param string $ip Comment IP. |
| | 793 | * @param string $ip Comment IP address. |
| 794 | 794 | * @param string $email Comment author email address. |
| 795 | 795 | * @param string $date MySQL time string. |
| 796 | 796 | * @param bool $avoid_die When true, a disallowed comment will result in the function |
| … |
… |
function wp_filter_comment($commentdata) { |
| 1814 | 1814 | */ |
| 1815 | 1815 | $commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] ); |
| 1816 | 1816 | /** |
| 1817 | | * Filters the comment author's IP before it is set. |
| | 1817 | * Filters the comment author's IP address before it is set. |
| 1818 | 1818 | * |
| 1819 | 1819 | * @since 1.5.0 |
| 1820 | 1820 | * |
| 1821 | | * @param string $comment_author_ip The comment author's IP. |
| | 1821 | * @param string $comment_author_ip The comment author's IP address. |
| 1822 | 1822 | */ |
| 1823 | 1823 | $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] ); |
| 1824 | 1824 | /** This filter is documented in wp-includes/comment.php */ |
diff --git src/wp-includes/http.php src/wp-includes/http.php
index 3e26b08fd8..8159b39386 100644
|
|
|
function wp_http_validate_url( $url ) { |
| 559 | 559 | * @since 3.6.0 |
| 560 | 560 | * |
| 561 | 561 | * @param bool false Whether HTTP request is external or not. |
| 562 | | * @param string $host IP of the requested host. |
| | 562 | * @param string $host IP address of the requested host. |
| 563 | 563 | * @param string $url URL of the requested host. |
| 564 | 564 | */ |
| 565 | 565 | if ( ! apply_filters( 'http_request_host_is_external', false, $host, $url ) ) |
diff --git src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php
index 9df86cfbde..742fdde7eb 100644
|
|
|
function newuser_notify_siteadmin( $user_id ) { |
| 1280 | 1280 | $options_site_url = esc_url(network_admin_url('settings.php')); |
| 1281 | 1281 | /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */ |
| 1282 | 1282 | $msg = sprintf(__('New User: %1$s |
| 1283 | | Remote IP: %2$s |
| | 1283 | Remote IP address: %2$s |
| 1284 | 1284 | |
| 1285 | 1285 | Disable these notifications: %3$s'), $user->user_login, wp_unslash( $_SERVER['REMOTE_ADDR'] ), $options_site_url); |
| 1286 | 1286 | |
diff --git src/wp-includes/pluggable.php src/wp-includes/pluggable.php
index 2b9d912958..d01a5faf00 100644
|
|
|
function wp_notify_postauthor( $comment_id, $deprecated = null ) { |
| 1458 | 1458 | case 'trackback': |
| 1459 | 1459 | /* translators: 1: Post title */ |
| 1460 | 1460 | $notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 1461 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
| 1462 | | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| | 1461 | /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| | 1462 | $notify_message .= sprintf( __('Website: %1$s (IP address: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 1463 | 1463 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 1464 | 1464 | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
| 1465 | 1465 | $notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n"; |
| … |
… |
function wp_notify_postauthor( $comment_id, $deprecated = null ) { |
| 1469 | 1469 | case 'pingback': |
| 1470 | 1470 | /* translators: 1: Post title */ |
| 1471 | 1471 | $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 1472 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
| 1473 | | $notify_message .= sprintf( __('Website: %1$s (IP: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| | 1472 | /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| | 1473 | $notify_message .= sprintf( __('Website: %1$s (IP address: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 1474 | 1474 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 1475 | 1475 | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
| 1476 | 1476 | $notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n"; |
| … |
… |
function wp_notify_postauthor( $comment_id, $deprecated = null ) { |
| 1479 | 1479 | break; |
| 1480 | 1480 | default: // Comments |
| 1481 | 1481 | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
| 1482 | | /* translators: 1: comment author, 2: author IP, 3: author domain */ |
| 1483 | | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| | 1482 | /* translators: 1: comment author, 2: author IP address, 3: author domain */ |
| | 1483 | $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 1484 | 1484 | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
| 1485 | 1485 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 1486 | 1486 | $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n"; |
| … |
… |
function wp_notify_moderator($comment_id) { |
| 1619 | 1619 | /* translators: 1: Post title */ |
| 1620 | 1620 | $notify_message = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
| 1621 | 1621 | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
| 1622 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
| 1623 | | $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| | 1622 | /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| | 1623 | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 1624 | 1624 | /* translators: 1: Trackback/pingback/comment author URL */ |
| 1625 | 1625 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 1626 | 1626 | $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; |
| … |
… |
function wp_notify_moderator($comment_id) { |
| 1629 | 1629 | /* translators: 1: Post title */ |
| 1630 | 1630 | $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
| 1631 | 1631 | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
| 1632 | | /* translators: 1: Trackback/pingback website name, 2: website IP, 3: website hostname */ |
| 1633 | | $notify_message .= sprintf( __( 'Website: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| | 1632 | /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ |
| | 1633 | $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 1634 | 1634 | /* translators: 1: Trackback/pingback/comment author URL */ |
| 1635 | 1635 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
| 1636 | 1636 | $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment_content . "\r\n\r\n"; |
| … |
… |
function wp_notify_moderator($comment_id) { |
| 1639 | 1639 | /* translators: 1: Post title */ |
| 1640 | 1640 | $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
| 1641 | 1641 | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
| 1642 | | /* translators: 1: Comment author name, 2: comment author's IP, 3: comment author IP's hostname */ |
| 1643 | | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| | 1642 | /* translators: 1: Comment author name, 2: comment author's IP address, 3: comment author IP address hostname */ |
| | 1643 | $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
| 1644 | 1644 | /* translators: 1: Comment author URL */ |
| 1645 | 1645 | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
| 1646 | 1646 | /* translators: 1: Trackback/pingback/comment author URL */ |