Make WordPress Core

Ticket #32369: 32369.patch

File 32369.patch, 1.5 KB (added by rachelbaker, 11 years ago)
  • src/wp-includes/comment.php

     
    22602260 *
    22612261 * @see wp_insert_comment()
    22622262 *
    2263  * @param array $commentdata Contains information on the comment. See wp_insert_comment()
    2264  *                           for information on accepted arguments.
     2263 * @param array $commentdata {
     2264 *     Contains information on the comment.
     2265 *
     2266 *     @type string $comment_author       The name of the author of the comment.
     2267 *     @type string $comment_author_email The email address of the `$comment_author`.
     2268 *     @type string $comment_author_url   The URL address of the `$comment_author`.
     2269 *     @type string $comment_content      The content of the comment.
     2270 *     @type string $comment_date         The date the comment was submitted. Default is the
     2271 *                                        current time.
     2272 *     @type string $comment_date_gmt     The date the comment was submitted in the GMT timezone.
     2273 *                                        Default is `$comment_date` in the GMT timezone.
     2274 *     @type int    $comment_parent       The ID of this comment's parent, if any. Default 0.
     2275 *     @type int    $comment_post_ID      The ID of the post that relates to the comment.
     2276 *     @type int    $user_id              The ID of the user who submitted the comment. Default 0.
     2277 * }
    22652278 * @return int|false The ID of the comment on success, false on failure.
    22662279 */
    22672280function wp_new_comment( $commentdata ) {