Changeset 26388
- Timestamp:
- 11/26/2013 04:09:30 AM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r26367 r26388 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 */ -
trunk/src/wp-includes/pluggable.php
r26367 r26388 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 */ … … 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 * Filter the list of emails to receive 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 Array of email addresses to receive a comment notification. 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 ); … … 1044 1046 $emails = array_flip( $emails ); 1045 1047 1046 // Post author may want to receive notifications for their own comments 1048 /** 1049 * Filter 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 $notify Whether to notify the post author of their own comment. Default false. 1057 * @param int $comment_id The comment ID. 1058 */ 1047 1059 $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment_id ); 1048 1060
Note: See TracChangeset
for help on using the changeset viewer.