Ticket #25699: 25699.inline-docs.diff
File 25699.inline-docs.diff, 2.6 KB (added by , 11 years ago) |
---|
-
src/wp-includes/comment.php
1378 1378 * 1379 1379 * @since 1.5.0 1380 1380 * @param array $commentdata Contains information on the comment. 1381 * @uses apply_filters()1382 * @uses wp_get_comment_status()1383 * @uses wp_filter_comment()1384 * @uses wp_allow_comment()1385 * @uses wp_insert_comment()1386 * @uses do_action()1387 * @uses wp_notify_moderator()1388 * @uses get_option()1389 * @uses wp_notify_postauthor()1390 1381 * @return int The ID of the comment after adding. 1391 1382 */ 1392 1383 function wp_new_comment( $commentdata ) { -
src/wp-includes/pluggable.php
1006 1006 * 1007 1007 * @param int $comment_id Comment ID 1008 1008 * @param string $deprecated Not used 1009 * @uses get_comment()1010 * @uses get_post()1011 * @uses get_userdata()1012 * @uses apply_filters()1013 * @uses wp_specialchars_decode()1014 * @uses get_option()1015 * @uses __()1016 * @uses get_permalink()1017 * @uses admin_url()1018 * @uses wp_mail()1019 1009 * @return bool True on completion. False if no email addresses were specified. 1020 1010 */ 1021 1011 function wp_notify_postauthor( $comment_id, $deprecated = null ) { … … 1032 1022 1033 1023 // Who to notify? By default, just the post author, but others can be added. 1034 1024 $emails = array( $author->user_email ); 1025 1026 /** 1027 * List of emails to be given a comment notification. 1028 * 1029 * Normally just post authors are notified of emails. 1030 * This filter lets you add others. 1031 * 1032 * @since 3.7.0 1033 * 1034 * @param array $emails The emails to be notified of the comment. 1035 * @param int $comment_id The comment ID. 1036 */ 1035 1037 $emails = apply_filters( 'comment_notification_recipients', $emails, $comment_id ); 1036 1038 $emails = array_filter( $emails ); 1037 1039 … … 1043 1045 // Facilitate unsetting below without knowing the keys. 1044 1046 $emails = array_flip( $emails ); 1045 1047 1046 // Post author may want to receive notifications for their own comments 1048 /** 1049 * Whether to notify comment authors of their comments on their own posts. 1050 * 1051 * By default, comment authors don't get notified of their comments 1052 * on their own post. This lets you override that. 1053 * 1054 * @since 3.8.0 1055 * 1056 * @param bool Whether to notify the post author of their own comment. 1057 * @param int $comment_id The comment ID. 1058 */ 1047 1059 $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment_id ); 1048 1060 1049 1061 // The comment was left by the author