Ticket #5589 (closed defect (bug): fixed)
Import GUID functionality no longer works
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.3.2 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | peterjanes |
Description
WordPress used to preserve GUIDs when importing from RSS feeds. (See Changeset 2193.) Now that the importer uses wp_insert_post that no longer works, since that method always overwrites the GUID with the permalink.
I haven't seen anything that suggests this was a deliberate change, and the RSS and WordPress importers still appear to determine posts' GUIDs so they can be preserved, so I have attached a patch against WP 2.3.2 that changes wp_insert_post to accept and use a guid if provided.
Attachments
Change History
- Owner changed from anonymous to westi
- Status changed from new to assigned
- Keywords reporter-feedback added; has-patch removed
Thank you for your patch.
However it does not apply correctly to WordPress trunk.
Could you recreate your patch against a clean checkout of trunk and then I will ensure it gets committed.
comment:5
peterjanes — 4 years ago
Here's the new patch from current SVN. It also picks up a change to the RSS importer where <guid> without any attributes isn't recognized.
- Status changed from assigned to closed
- Resolution set to fixed
comment:7
jeremyclarke — 4 years ago
Thanks so much peterjanes and westi! This will be very useful for aggregators!

