Changeset 34536
- Timestamp:
- 09/25/2015 05:22:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-functions.php
r34535 r34536 591 591 wp_unslash( $commentdata['comment_content'] ) 592 592 ); 593 if ( $wpdb->get_var( $dupe ) ) { 593 594 $dupe_id = $wpdb->get_var( $dupe ); 595 596 /** 597 * Filters the ID, if any, of the duplicate comment found when creating a new comment. 598 * 599 * Return an empty value from this filter to allow what WP considers a duplicate comment. 600 * 601 * @since 4.4.0 602 * 603 * @param int $dupe_id ID of the comment identified as a duplicate. 604 * @param array $commentdata Data for the comment being created. 605 */ 606 $dupe_id = apply_filters( 'duplicate_comment_id', $dupe_id, $commentdata ); 607 608 if ( $dupe_id ) { 594 609 /** 595 610 * Fires immediately after a duplicate comment is detected.
Note: See TracChangeset
for help on using the changeset viewer.