Make WordPress Core

Changeset 26388


Ignore:
Timestamp:
11/26/2013 04:09:30 AM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for the following filter hooks in wp-includes/pluggable.php:

  • comment_notification_recipients
  • comment_notification_notify_author

Also removes some generic @uses tags from various related doc blocks.

Props markjaquith.
Fixes #25699.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r26367 r26388  
    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 */
  • trunk/src/wp-includes/pluggable.php

    r26367 r26388  
    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 */
     
    10331023    // Who to notify? By default, just the post author, but others can be added.
    10341024    $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     */
    10351037    $emails = apply_filters( 'comment_notification_recipients', $emails, $comment_id );
    10361038    $emails = array_filter( $emails );
     
    10441046    $emails = array_flip( $emails );
    10451047
    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     */
    10471059    $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment_id );
    10481060
Note: See TracChangeset for help on using the changeset viewer.