Make WordPress Core

Ticket #25699: 25699.inline-docs.diff

File 25699.inline-docs.diff, 2.6 KB (added by markjaquith, 11 years ago)

Inline docs changes.

  • src/wp-includes/comment.php

     
    13781378 *
    13791379 * @since 1.5.0
    13801380 * @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()
    13901381 * @return int The ID of the comment after adding.
    13911382 */
    13921383function wp_new_comment( $commentdata ) {
  • src/wp-includes/pluggable.php

     
    10061006 *
    10071007 * @param int $comment_id Comment ID
    10081008 * @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()
    10191009 * @return bool True on completion. False if no email addresses were specified.
    10201010 */
    10211011function wp_notify_postauthor( $comment_id, $deprecated = null ) {
     
    10321022
    10331023        // Who to notify? By default, just the post author, but others can be added.
    10341024        $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         */
    10351037        $emails = apply_filters( 'comment_notification_recipients', $emails, $comment_id );
    10361038        $emails = array_filter( $emails );
    10371039
     
    10431045        // Facilitate unsetting below without knowing the keys.
    10441046        $emails = array_flip( $emails );
    10451047
    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         */
    10471059        $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment_id );
    10481060
    10491061        // The comment was left by the author