Changeset 41704
- Timestamp:
- 10/03/2017 01:08:48 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-discussion.php
r40779 r41704 158 158 <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> 159 159 160 <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 IPper line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>160 <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> 161 161 <p> 162 162 <textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea> … … 167 167 <th scope="row"><?php _e('Comment Blacklist'); ?></th> 168 168 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend> 169 <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 IPper line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>169 <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> 170 170 <p> 171 171 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> -
trunk/src/wp-includes/comment.php
r41689 r41704 791 791 * 792 792 * @param bool $is_flood Is a comment flooding occurring? 793 * @param string $ip Comment IP.794 * @param string $email Comment author email address.793 * @param string $ip Comment author's IP address. 794 * @param string $email Comment author's 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 … … 1157 1157 * @param string $url The url used in the comment 1158 1158 * @param string $comment The comment content 1159 * @param string $user_ip The comment author IP address1159 * @param string $user_ip The comment author's IP address 1160 1160 * @param string $user_agent The author's browser user agent 1161 1161 * @return bool True if comment contains blacklisted content, false if comment does not … … 1835 1835 $commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] ); 1836 1836 /** 1837 * Filters the comment author's IP before it is set.1837 * Filters the comment author's IP address before it is set. 1838 1838 * 1839 1839 * @since 1.5.0 1840 1840 * 1841 * @param string $comment_author_ip The comment author's IP .1841 * @param string $comment_author_ip The comment author's IP address. 1842 1842 */ 1843 1843 $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] ); -
trunk/src/wp-includes/pluggable.php
r41686 r41704 1470 1470 /* translators: 1: Post title */ 1471 1471 $notify_message = sprintf( __( 'New trackback 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"; … … 1481 1481 /* translators: 1: Post title */ 1482 1482 $notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n"; 1483 /* translators: 1: Trackback/pingback website name, 2: website IP , 3: website hostname */1484 $notify_message .= sprintf( __('Website: %1$s (IP : %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";1483 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ 1484 $notify_message .= sprintf( __('Website: %1$s (IP address: %2$s, %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\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"; … … 1491 1491 default: // Comments 1492 1492 $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; 1493 /* translators: 1: comment author, 2: author IP, 3: author domain*/1494 $notify_message .= sprintf( __( 'Author: %1$s (IP : %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";1493 /* translators: 1: comment author, 2: comment author's IP address, 3: comment author's hostname */ 1494 $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1495 1495 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; 1496 1496 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; … … 1631 1631 $notify_message = sprintf( __('A new trackback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1632 1632 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1633 /* translators: 1: Trackback/pingback website name, 2: website IP , 3: website hostname */1634 $notify_message .= sprintf( __( 'Website: %1$s (IP : %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";1633 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ 1634 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1635 1635 /* translators: 1: Trackback/pingback/comment author URL */ 1636 1636 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; … … 1641 1641 $notify_message = sprintf( __('A new pingback on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1642 1642 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1643 /* translators: 1: Trackback/pingback website name, 2: website IP , 3: website hostname */1644 $notify_message .= sprintf( __( 'Website: %1$s (IP : %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";1643 /* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */ 1644 $notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1645 1645 /* translators: 1: Trackback/pingback/comment author URL */ 1646 1646 $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; … … 1651 1651 $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; 1652 1652 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1653 /* translators: 1: Comment author name, 2: comment author's IP , 3: comment author IP's hostname */1654 $notify_message .= sprintf( __( 'Author: %1$s (IP : %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";1653 /* translators: 1: Comment author name, 2: comment author's IP address, 3: comment author's hostname */ 1654 $notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1655 1655 /* translators: 1: Comment author URL */ 1656 1656 $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
Note: See TracChangeset
for help on using the changeset viewer.