#18 closed defect (bug) (fixed)
Posts created with old versions of WP contain extra slashes
| Reported by: | ryan | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
Old versions of WP added extra slashes to posts. These extra slashes show up in WP 1.2. We need to provide a script that removes these extra slashes from old posts.
Change History (8)
#4
@
22 years ago
I think guessing the time of this upgrade is the major problem. Then you can change all comments newer than this time. Maybe looking at the ctime of some WP files can help (other ideas to make this more reliable?) but it should be left to the user to change this, if he *knows* when he did this upgrade (eventually he has written a post this day, he can remember, ...).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This can be integrated into the upgrade script of the next release.
My interim solution was to search for instances of 3 backslashes (
\) and replaced them with just one backslash. I did this in phpmyadmin.
However, a downside is it would affect any posts/comments/etc that was purposedly entered to contain 3 backslashes in the text.