Make WordPress Core

Ticket #7550: 7550.r8954.diff

File 7550.r8954.diff, 2.3 KB (added by jacobsantos, 15 years ago)

Corrections for comment.php based off of r8954

  • comment.php

     
    1414 * links exceeds the amount in the administration, then the check fails. If any
    1515 * of the parameter contents match the blacklist of words, then the check fails.
    1616 *
     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 *
    1721 * If the comment is a trackback and part of the blogroll, then the trackback is
    1822 * automatically whitelisted. If the comment author was approved before, then
    1923 * the comment is automatically whitelisted.
     
    116120 * after being passed through a filter. If the comment is empty, then the global
    117121 * comment variable will be used, if it is set.
    118122 *
     123 * If the comment is empty, then the global comment variable will be used, if it
     124 * is set.
     125 *
    119126 * @since 2.0.0
    120127 * @uses $wpdb
    121128 *
     
    591598 * @uses do_action() Calls 'wp_set_comment_status' hook on comment ID with 'delete' set for the second parameter
    592599 *
    593600 * @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.
    595602 */
    596603function wp_delete_comment($comment_id) {
    597604        global $wpdb;
     
    727734 * @uses apply_filters() Calls 'pre_comment_author_url' hook on comment author's URL
    728735 * @uses apply_filters() Calls 'pre_comment_author_email' hook on comment author's email address
    729736 *
    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.
    732739 */
    733740function wp_filter_comment($commentdata) {
    734741        $commentdata['user_id']              = apply_filters('pre_user_id', $commentdata['user_ID']);
     
    775782 * @uses wp_allow_comment() checks to see if comment is approved.
    776783 * @uses wp_insert_comment() Does the actual comment insertion to the database.
    777784 *
    778  * @param array $commentdata Contains information on the comment
     785 * @param array $commentdata Contains information on the comment.
    779786 * @return int The ID of the comment after adding.
    780787 */
    781788function wp_new_comment( $commentdata ) {