Make WordPress Core

Ticket #32369: 32369.2.patch

File 32369.2.patch, 2.1 KB (added by DrewAPicture, 10 years ago)

refresh + two new arguments

  • src/wp-includes/comment.php

     
    23262326 *
    23272327 * @global wpdb $wpdb
    23282328 *
    2329  * @param array $commentdata Contains information on the comment. See wp_insert_comment()
    2330  *                           for information on accepted arguments.
     2329 * @param array $commentdata {
     2330 *     Contains information on the comment.
     2331 *
     2332 *     @type string $comment_author       The name of the author of the comment.
     2333 *     @type string $comment_author_email The email address of the `$comment_author`.
     2334 *     @type string $comment_author_url   The URL address of the `$comment_author`.
     2335 *     @type string $comment_content      The content of the comment.
     2336 *     @type string $comment_date         The date the comment was submitted. Default is the
     2337 *                                        current time.
     2338 *     @type string $comment_date_gmt     The date the comment was submitted in the GMT timezone.
     2339 *                                        Default is `$comment_date` in the GMT timezone.
     2340 *     @type int    $comment_parent       The ID of this comment's parent, if any. Default 0.
     2341 *     @type int    $comment_post_ID      The ID of the post that relates to the comment.
     2342 *     @type int    $user_id              The ID of the user who submitted the comment. Default 0.
     2343 *     @type string $comment_agent        Comment author user agent. Default is the value of
     2344 *                                        'HTTP_USER_AGENT' in the `$_SERVER` superglobal sent in the
     2345 *                                        original request.
     2346 *     @type string $comment_author_IP    Comment author IP address in IPv4 format. Default is the
     2347 *                                        value of 'REMOTE_ADDR' in the `$_SERVER` superglobal sent
     2348 *                                        in the original request.
     2349 * }
    23312350 * @return int|false The ID of the comment on success, false on failure.
    23322351 */
    23332352function wp_new_comment( $commentdata ) {