Changeset 861743
- Timestamp:
- 02/20/2014 03:52:13 PM (12 years ago)
- File:
-
- 1 edited
-
add-pingbacks/trunk/add-pingbacks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
add-pingbacks/trunk/add-pingbacks.php
r861104 r861743 63 63 } 64 64 65 function addPingbacks_add_comments( $id, $author, $email, $url, $ip, $comment ) {65 function addPingbacks_add_comments( $id, $author, $email, $url, $ip, $comments ) { 66 66 67 $explodes = explode( '%*%', $comments ); 68 if( empty( $explodes ) ) return false; 69 70 foreach( $explodes as $comment ) 67 71 wp_insert_comment( array( 68 72 'comment_post_ID' => $id, … … 71 75 'comment_author_url' => $url, 72 76 'comment_content' => $comment, 73 'comment_type' => ' pingback',77 'comment_type' => '', 74 78 'comment_parent' => 0, 75 79 'user_id' => '', 76 80 'comment_author_IP' => $ip, 77 'comment_agent' => 'Add Pingbacks Plugin',81 'comment_agent' => 'Add Comments Plugin - http://shinraholdings.com/plugins/add-comments', 78 82 'comment_date' => current_time( 'mysql' ), 79 83 'comment_approved' => 1 ) ); 84 80 85 return true; 81 86 }
Note: See TracChangeset
for help on using the changeset viewer.