| 1251 | | $consulta = $wpdb->query("INSERT INTO $wpdb->comments |
|---|
| 1252 | | (comment_post_ID, comment_author, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type) |
|---|
| 1253 | | VALUES |
|---|
| 1254 | | ($post_ID, '$title', '$pagelinkedfrom', '$user_ip', '$now', '$now_gmt', '$context', '1', '$user_agent', 'pingback') |
|---|
| 1255 | | "); |
|---|
| 1256 | | |
|---|
| 1257 | | $comment_ID = $wpdb->get_var('SELECT last_insert_id()'); |
|---|
| | 1247 | $comment_post_ID = $post_ID; |
|---|
| | 1248 | $comment_author = $title; |
|---|
| | 1249 | $comment_author_url = $pagelinkedfrom; |
|---|
| | 1250 | $comment_content = $context; |
|---|
| | 1251 | $comment_type = 'pingback'; |
|---|
| | 1252 | |
|---|
| | 1253 | $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type'); |
|---|
| | 1254 | |
|---|
| | 1255 | $comment_ID = $wpdb->insert_id; |
|---|