Ticket #7550: 7550.r8954.diff
File 7550.r8954.diff, 2.3 KB (added by , 16 years ago) |
---|
-
comment.php
14 14 * links exceeds the amount in the administration, then the check fails. If any 15 15 * of the parameter contents match the blacklist of words, then the check fails. 16 16 * 17 * If the number of links exceeds the amount in the administration, then the 18 * check fails. If any of the parameter contents match the blacklist of words, 19 * then the check fails. 20 * 17 21 * If the comment is a trackback and part of the blogroll, then the trackback is 18 22 * automatically whitelisted. If the comment author was approved before, then 19 23 * the comment is automatically whitelisted. … … 116 120 * after being passed through a filter. If the comment is empty, then the global 117 121 * comment variable will be used, if it is set. 118 122 * 123 * If the comment is empty, then the global comment variable will be used, if it 124 * is set. 125 * 119 126 * @since 2.0.0 120 127 * @uses $wpdb 121 128 * … … 591 598 * @uses do_action() Calls 'wp_set_comment_status' hook on comment ID with 'delete' set for the second parameter 592 599 * 593 600 * @param int $comment_id Comment ID 594 * @return bool False if delete comment query failure, true on success 601 * @return bool False if delete comment query failure, true on success. 595 602 */ 596 603 function wp_delete_comment($comment_id) { 597 604 global $wpdb; … … 727 734 * @uses apply_filters() Calls 'pre_comment_author_url' hook on comment author's URL 728 735 * @uses apply_filters() Calls 'pre_comment_author_email' hook on comment author's email address 729 736 * 730 * @param array $commentdata Contains information on the comment 731 * @return array Parsed comment information 737 * @param array $commentdata Contains information on the comment. 738 * @return array Parsed comment information. 732 739 */ 733 740 function wp_filter_comment($commentdata) { 734 741 $commentdata['user_id'] = apply_filters('pre_user_id', $commentdata['user_ID']); … … 775 782 * @uses wp_allow_comment() checks to see if comment is approved. 776 783 * @uses wp_insert_comment() Does the actual comment insertion to the database. 777 784 * 778 * @param array $commentdata Contains information on the comment 785 * @param array $commentdata Contains information on the comment. 779 786 * @return int The ID of the comment after adding. 780 787 */ 781 788 function wp_new_comment( $commentdata ) {