Changeset 34252 for trunk/src/wp-includes/comment-functions.php
- Timestamp:
- 09/16/2015 10:25:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-functions.php
r34250 r34252 1647 1647 * @since 4.4.0 1648 1648 * 1649 * @param int $comment_ID ID of the comment. 1650 * @param int $comment_approved Whether the comment is approved. 1649 * @param int $comment_ID ID of the comment. 1651 1650 * @return bool True on success, false on failure. 1652 1651 */ 1653 function wp_new_comment_notify_moderator( $comment_ID, $comment_approved ) { 1652 function wp_new_comment_notify_moderator( $comment_ID ) { 1653 $comment = get_comment( $comment_ID ); 1654 1654 1655 // Only send notifications for pending comments. 1655 if ( '0' != $comment _approved ) {1656 if ( '0' != $comment->comment_approved ) { 1656 1657 return false; 1657 1658 }
Note: See TracChangeset
for help on using the changeset viewer.