Ticket #38282: 38282.diff
| File 38282.diff, 735 bytes (added by , 10 years ago) |
|---|
-
src/wp-trackback.php
112 112 113 113 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type'); 114 114 115 wp_new_comment($commentdata); 116 $trackback_id = $wpdb->insert_id; 115 $trackback_id = wp_new_comment( $commentdata, true ); 116 if ( is_wp_error( $trackback_id ) ) { 117 trackback_response( 1, $trackback_id->get_error_message() ); 118 } 117 119 120 if ( ! $trackback_id ) { 121 trackback_response( 1, __( 'Unknown error occured.' ) ); 122 } 123 118 124 /** 119 125 * Fires after a trackback is added to a post. 120 126 *
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)