From f927722bc06df630eb1c55a0cb28358718f1f097 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 13 May 2015 02:53:03 +0000 Subject: [PATCH] Update the DocBlock for `wp_new_comment()` to reference the `wp_insert_comment()` documentation for argument information. Fixes #31747. git-svn-id: https://develop.svn.wordpress.org/trunk@32500 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 9f2fa19d73..8fddbb916c 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -2257,8 +2257,12 @@ function wp_throttle_comment_flood($block, $time_lastcomment, $time_newcomment) * See {@link https://core.trac.wordpress.org/ticket/9235} * * @since 1.5.0 - * @param array $commentdata Contains information on the comment. - * @return int|bool The ID of the comment on success, false on failure. + * + * @see wp_insert_comment() + * + * @param array $commentdata Contains information on the comment. See wp_insert_comment() + * for information on accepted arguments. + * @return int|false The ID of the comment on success, false on failure. */ function wp_new_comment( $commentdata ) { global $wpdb;