#1683 closed defect (bug) (fixed)
Blogger Importer inserts comments directly
| Reported by: | skeltoac | Owned by: | ryan |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Administration | Version: | 1.6 |
| Severity: | normal | Keywords: | importer |
| Cc: | Focuses: |
Description
One last MySQL query. To speed importing and ensure the script doesn't die() on inserting comments, this diff adds circumvention of checks in wp_new_comment().
Attachments (2)
Change History (6)
#1
@
21 years ago
Actually, I'd like to bust this up into multiple functions.
wp_insert_comment() would handle the DB insertion.
wp_allow_comment() would do the flood protection, check_comment(), wp_blacklist_check(), and other checks.
wp_new_comment_notification() would live in pluggable-functions and would call wp_notify_post_author() and wp_notify_moderator.
wp_new_comment() would wrap all of these up into one call.
Importers would call wp_insert_comment() and thus avoid the comment checks and mail notifications.
wp_new_comment() would continue to be used as is.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
svn diff