Changeset 34129 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 09/14/2015 09:39:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r34125 r34129 1354 1354 * @since 1.0.0 1355 1355 * 1356 * @param int $comment_id Comment ID1357 * @param string $deprecated Not used1356 * @param int|WP_Comment $comment_id Comment ID or WP_Comment object. 1357 * @param string $deprecated Not used 1358 1358 * @return bool True on completion. False if no email addresses were specified. 1359 1359 */ … … 1387 1387 * @param int $comment_id The comment ID. 1388 1388 */ 1389 $emails = apply_filters( 'comment_notification_recipients', $emails, $comment _id);1389 $emails = apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID ); 1390 1390 $emails = array_filter( $emails ); 1391 1391 … … 1410 1410 * @param int $comment_id The comment ID. 1411 1411 */ 1412 $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment _id);1412 $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID ); 1413 1413 1414 1414 // The comment was left by the author … … 1476 1476 $notify_message .= sprintf( __('Permalink: %s'), get_comment_link( $comment ) ) . "\r\n"; 1477 1477 1478 if ( user_can( $post->post_author, 'edit_comment', $comment_id ) ) { 1479 if ( EMPTY_TRASH_DAYS ) 1480 $notify_message .= sprintf( __('Trash it: %s'), admin_url("comment.php?action=trash&c=$comment_id") ) . "\r\n"; 1481 else 1482 $notify_message .= sprintf( __('Delete it: %s'), admin_url("comment.php?action=delete&c=$comment_id") ) . "\r\n"; 1483 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=spam&c=$comment_id") ) . "\r\n"; 1478 if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) { 1479 if ( EMPTY_TRASH_DAYS ) { 1480 $notify_message .= sprintf( __('Trash it: %s'), admin_url("comment.php?action=trash&c={$comment->comment_ID}") ) . "\r\n"; 1481 } else { 1482 $notify_message .= sprintf( __('Delete it: %s'), admin_url("comment.php?action=delete&c={$comment->comment_ID}") ) . "\r\n"; 1483 } 1484 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=spam&c={$comment->comment_ID}") ) . "\r\n"; 1484 1485 } 1485 1486 … … 1510 1511 * @param int $comment_id Comment ID. 1511 1512 */ 1512 $notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment _id);1513 $notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID ); 1513 1514 1514 1515 /** … … 1520 1521 * @param int $comment_id Comment ID. 1521 1522 */ 1522 $subject = apply_filters( 'comment_notification_subject', $subject, $comment _id);1523 $subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID ); 1523 1524 1524 1525 /** … … 1530 1531 * @param int $comment_id Comment ID. 1531 1532 */ 1532 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment _id);1533 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID ); 1533 1534 1534 1535 foreach ( $emails as $email ) {
Note: See TracChangeset
for help on using the changeset viewer.