Ticket #4242 (closed defect (bug): fixed)
Export function does not define comments as CDATA
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | Administration | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: |
Description
Because comments aren't defined as CDATA, if they contain invalid characters (which is likely, given the public nature of comments) then data can be lost when the XML file WordPress generates is imported into a new database.
Attachments
Change History
comment:1
nbachiyski — 5 years ago
- Keywords has-patch added
Here is a patch, witch adds the post content, the comment content and the dc:creator fields as CDATA sections. Are there any other that should be treated this way?
- Keywords needs-testing added; export comments CDATA removed
- Owner changed from anonymous to westi
- Status changed from new to assigned
Current patch doesn't apply
Uploading updated patch.
However a quick test of export from trunk with this change and import into branches/2.3 failed so this may need more work on the import side?
meh. it looks like I missed an echo in my updated patch and no comments are being exported :-(

