WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#18 closed defect (bug) (fixed)

Posts created with old versions of WP contain extra slashes

Reported by: ryan Owned by: ryan
Milestone: Priority: normal
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:

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 (7)

comment:2 markku10 years ago

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.

comment:3 ryan10 years ago

  • Status changed from new to assigned

comment:4 Zarniwoop10 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, ...).

comment:5 ryan10 years ago

  • Owner changed from anonymous to rboren

comment:6 ryan10 years ago

  • Resolution changed from 10 to 20
  • Status changed from assigned to closed

Extra slashes removed during upgrade.

Note: See TracTickets for help on using tickets.